[llvm] [LFI] Report reserved register modification in error message (PR #195160)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 13:08:33 PDT 2026
================
@@ -1,45 +1,45 @@
// RUN: not llvm-mc -triple aarch64_lfi %s 2>&1 | FileCheck %s
mov x27, x0
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X27
// CHECK: mov x27, x0
ldr x27, [x0]
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X27
// CHECK: ldr x27, [x0]
add x27, x0, x1
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X27
// CHECK: add x27, x0, x1
mov x28, x0
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X28
// CHECK: mov x28, x0
ldr x28, [x0]
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X28
// CHECK: ldr x28, [x0]
add x28, x0, x1
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X28
// CHECK: add x28, x0, x1
ldp x27, x28, [x0]
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X28
// CHECK: ldp x27, x28, [x0]
ldp x0, x27, [x1]
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X27
// CHECK: ldp x0, x27, [x1]
ldp x28, x0, [x1]
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X28
// CHECK: ldp x28, x0, [x1]
ldr x0, [x27], #8
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X27
// CHECK: ldr x0, [x27], #8
ldr x0, [x28, #8]!
-// CHECK: error: illegal modification of reserved LFI register
+// CHECK: error: illegal modification of reserved LFI register X28
----------------
nickdesaulniers wrote:
The for loop checks 3 different registers, but these updated test cases only are for x27 and x28. Are we missing test coverage for the third reserved register?
https://github.com/llvm/llvm-project/pull/195160
More information about the llvm-commits
mailing list