[llvm] 29bb649 - [llvm][AArch64] Test warning for clobbering w19 with base frame pointer

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 02:58:31 PDT 2022


Author: David Spickett
Date: 2022-09-12T09:57:53Z
New Revision: 29bb6497dac25370f9b6e7c7a5fcfac0467e092c

URL: https://github.com/llvm/llvm-project/commit/29bb6497dac25370f9b6e7c7a5fcfac0467e092c
DIFF: https://github.com/llvm/llvm-project/commit/29bb6497dac25370f9b6e7c7a5fcfac0467e092c.diff

LOG: [llvm][AArch64] Test warning for clobbering w19 with base frame pointer

The test added in 739b69e655fe66674982cffc8b8166306355e7d3 only checked
that X19 triggers the explanation, also check W19.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/inline-asm-clobber-base-frame-pointer.ll b/llvm/test/CodeGen/AArch64/inline-asm-clobber-base-frame-pointer.ll
index 9d2e55deb7e5..ad743ae434c5 100644
--- a/llvm/test/CodeGen/AArch64/inline-asm-clobber-base-frame-pointer.ll
+++ b/llvm/test/CodeGen/AArch64/inline-asm-clobber-base-frame-pointer.ll
@@ -4,12 +4,14 @@
 ; RUN: llc <%s -mtriple=aarch64-none-eabi 2>&1 | FileCheck %s
 
 ; CHECK: warning: inline asm clobber list contains reserved registers: X19
-; CHECK: note: X19 is used as the frame base pointer register.
+; CHECK-NEXT: note: Reserved registers on the clobber list
+; CHECK-NEXT: note: X19 is used as the frame base pointer register.
+; CHECK-NEXT: note: X19 is used as the frame base pointer register.
 
 define void @alloca(i64 %size) {
 entry:
   %a = alloca i128, i64 %size, align 64
-  call void asm sideeffect "nop", "~{x19}"()
+  call void asm sideeffect "nop", "~{x19},~{w19}"()
   ret void
 }
 


        


More information about the llvm-commits mailing list