Skip to content

Commit 29bb649

Browse files
committed
[llvm][AArch64] Test warning for clobbering w19 with base frame pointer
The test added in 739b69e only checked that X19 triggers the explanation, also check W19.
1 parent 30dd839 commit 29bb649

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/test/CodeGen/AArch64/inline-asm-clobber-base-frame-pointer.ll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
; RUN: llc <%s -mtriple=aarch64-none-eabi 2>&1 | FileCheck %s
55

66
; CHECK: warning: inline asm clobber list contains reserved registers: X19
7-
; CHECK: note: X19 is used as the frame base pointer register.
7+
; CHECK-NEXT: note: Reserved registers on the clobber list
8+
; CHECK-NEXT: note: X19 is used as the frame base pointer register.
9+
; CHECK-NEXT: note: X19 is used as the frame base pointer register.
810

911
define void @alloca(i64 %size) {
1012
entry:
1113
%a = alloca i128, i64 %size, align 64
12-
call void asm sideeffect "nop", "~{x19}"()
14+
call void asm sideeffect "nop", "~{x19},~{w19}"()
1315
ret void
1416
}
1517

0 commit comments

Comments
 (0)