Skip to content

Commit cee6e81

Browse files
committed
[AArch64] Generate test checks (NFC)
Also mark the test as nounwind. The unwinding information does not appear to be pertinent to the original intent of the test.
1 parent a58dd0e commit cee6e81

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

llvm/test/CodeGen/AArch64/windows-extern-weak.ll

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
12
; RUN: llc -mtriple aarch64-windows -filetype asm -o - < %s | FileCheck %s
23
; RUN: llc -mtriple aarch64-windows -filetype asm -o - -fast-isel %s | FileCheck %s
34
; RUN: llc -mtriple aarch64-windows -filetype asm -o - -global-isel -global-isel-abort=0 %s | FileCheck %s
45

5-
define void @func() {
6+
define void @func() nounwind {
67
; CHECK-LABEL: func:
7-
; CHECK: str x30, [sp, #-16]!
8-
; CHECK-NEXT: .seh_save_reg_x x30, 16
9-
; CHECK-NEXT: .seh_endprologue
10-
; CHECK-NEXT: adrp x8, .refptr.weakfunc
11-
; CHECK-NEXT: ldr x8, [x8, :lo12:.refptr.weakfunc]
12-
; CHECK-NEXT: cbz x8, .LBB0_2
13-
; CHECK-NEXT: // %bb.1:
14-
; CHECK-NEXT: blr x8
15-
; CHECK-NEXT: .LBB0_2:
16-
; CHECK-NEXT: .seh_startepilogue
17-
; CHECK-NEXT: ldr x30, [sp], #16
18-
; CHECK-NEXT: .seh_save_reg_x x30, 16
19-
; CHECK-NEXT: .seh_endepilogue
20-
; CHECK-NEXT: ret
8+
; CHECK: // %bb.0:
9+
; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
10+
; CHECK-NEXT: adrp x8, .refptr.weakfunc
11+
; CHECK-NEXT: ldr x8, [x8, :lo12:.refptr.weakfunc]
12+
; CHECK-NEXT: cbz x8, .LBB0_2
13+
; CHECK-NEXT: // %bb.1:
14+
; CHECK-NEXT: blr x8
15+
; CHECK-NEXT: .LBB0_2:
16+
; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
17+
; CHECK-NEXT: ret
2118

2219
br i1 icmp ne (ptr @weakfunc, ptr null), label %1, label %2
2320

0 commit comments

Comments
 (0)