forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged master:92063228f85 into amd-gfx:8793c74c592
Local branch amd-gfx 8793c74 Merged master:20c9bb44ec1 into amd-gfx:54bd13cd900 Remote branch master 9206322 [lldb/CMake] Fix typo that prevented regenerating the bindings
- Loading branch information
Showing
10 changed files
with
113 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
|
||
;; Testing that x18 is backed up and restored, and that x29 (if used) still | ||
;; points to the x29,x30 pair on the stack. | ||
|
||
; RUN: llc < %s -mtriple=aarch64-linux-gnu --frame-pointer=non-leaf | FileCheck %s | ||
; RUN: llc < %s -mtriple=aarch64-linux-gnu --frame-pointer=non-leaf -mattr=+reserve-x18 | FileCheck %s | ||
|
||
declare dso_local void @other() | ||
|
||
define dso_local win64cc void @func() #0 { | ||
; CHECK-LABEL: func: | ||
; CHECK: // %bb.0: // %entry | ||
; CHECK-NEXT: stp x29, x30, [sp, #-32]! // 16-byte Folded Spill | ||
; CHECK-NEXT: str x18, [sp, #16] // 8-byte Folded Spill | ||
; CHECK-NEXT: mov x29, sp | ||
; CHECK-NEXT: bl other | ||
; CHECK-NEXT: ldr x18, [sp, #16] // 8-byte Folded Reload | ||
; CHECK-NEXT: ldp x29, x30, [sp], #32 // 16-byte Folded Reload | ||
; CHECK-NEXT: ret | ||
entry: | ||
tail call void @other() | ||
ret void | ||
} | ||
|
||
attributes #0 = { nounwind } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py | ||
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s | ||
|
||
%struct.bf = type { i64, i16, i16, i32 } | ||
@bfi = common global %struct.bf zeroinitializer, align 16 | ||
|
||
define void @t1() nounwind optsize ssp { | ||
; CHECK-LABEL: t1: | ||
; CHECK: # %bb.0: # %entry | ||
; CHECK-NEXT: orb $1, bfi+{{.*}}(%rip) | ||
; CHECK-NEXT: retq | ||
entry: | ||
%0 = load i32, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8 | ||
%1 = or i32 %0, 65536 | ||
store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8 | ||
ret void | ||
|
||
; CHECK-LABEL: t1: | ||
; CHECK: orb $1 | ||
; CHECK-NEXT: ret | ||
} | ||
|
||
define void @t2() nounwind optsize ssp { | ||
; CHECK-LABEL: t2: | ||
; CHECK: # %bb.0: # %entry | ||
; CHECK-NEXT: orl $16842752, bfi+{{.*}}(%rip) # imm = 0x1010000 | ||
; CHECK-NEXT: retq | ||
entry: | ||
%0 = load i32, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8 | ||
%1 = or i32 %0, 16842752 | ||
store i32 %1, i32* bitcast (i16* getelementptr (%struct.bf, %struct.bf* @bfi, i32 0, i32 1) to i32*), align 8 | ||
ret void | ||
|
||
; CHECK-LABEL: t2: | ||
; CHECK: orl $16842752 | ||
; CHECK-NEXT: ret | ||
} |