[llvm] 5539daf - [ARM] Make test more robust (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 12 01:25:25 PDT 2025
Author: Nikita Popov
Date: 2025-09-12T10:25:15+02:00
New Revision: 5539daf8120cfe20c0c36d115319e14077e5fa79
URL: https://github.com/llvm/llvm-project/commit/5539daf8120cfe20c0c36d115319e14077e5fa79
DIFF: https://github.com/llvm/llvm-project/commit/5539daf8120cfe20c0c36d115319e14077e5fa79.diff
LOG: [ARM] Make test more robust (NFC)
Make sure this doesn't optimize down to something simpler.
Added:
Modified:
llvm/test/CodeGen/Thumb2/bti-indirect-branches.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/Thumb2/bti-indirect-branches.ll b/llvm/test/CodeGen/Thumb2/bti-indirect-branches.ll
index c6ffb92d60d8d..8e570f0e91a08 100644
--- a/llvm/test/CodeGen/Thumb2/bti-indirect-branches.ll
+++ b/llvm/test/CodeGen/Thumb2/bti-indirect-branches.ll
@@ -25,7 +25,7 @@ define internal i32 @table_switch(i32 %x) "branch-target-enforcement" {
; CHECK-NEXT: movs r0, #3
; CHECK-NEXT: bx lr
; CHECK-NEXT: .LBB0_5: @ %bb4
-; CHECK-NEXT: movs r0, #4
+; CHECK-NEXT: movs r0, #5
; CHECK-NEXT: bx lr
; CHECK-NEXT: .LBB0_6: @ %sw.epilog
; CHECK-NEXT: movs r0, #0
@@ -51,7 +51,7 @@ sw.epilog:
br label %return
return:
- %ret = phi i32 [ 0, %sw.epilog ], [ 1, %bb1 ], [ 2, %bb2 ], [ 3, %bb3 ], [ 4, %bb4 ]
+ %ret = phi i32 [ 0, %sw.epilog ], [ 1, %bb1 ], [ 2, %bb2 ], [ 3, %bb3 ], [ 5, %bb4 ]
ret i32 %ret
}
More information about the llvm-commits
mailing list