[PATCH] D154355: [ARM] make execute only long call test checks more robust
Ties Stuij via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 3 08:09:17 PDT 2023
stuij created this revision.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
stuij requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154355
Files:
llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
Index: llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
===================================================================
--- llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
+++ llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
@@ -3,9 +3,9 @@
define void @fn() #0 {
entry:
; CHECK-LABEL: fn:
-; CHECK: ldr [[REG:r[0-9]+]], .LCPI0_0
+; CHECK: ldr [[REG:r[0-9]+]], [[LABEL:[^\s]+]]0_0
; CHECK-NEXT: blx [[REG]]
-; CHECK: .LCPI0_0:
+; CHECK: [[LABEL]]0_0:
; CHECK-NEXT: .long bar
call void @bar()
ret void
@@ -14,14 +14,14 @@
define void @execute_only_fn() #1 {
; CHECK-LABEL: execute_only_fn:
; CHECK: movs [[REG0:r[0-9]+]], :upper8_15:bar
-; CHECK-NEXT: lsls [[REG0]], r0, #8
+; CHECK-NEXT: lsls [[REG0]], [[REG0]], #8
; CHECK-NEXT: adds [[REG0]], :upper0_7:bar
-; CHECK-NEXT: lsls [[REG0]], r0, #8
+; CHECK-NEXT: lsls [[REG0]], [[REG0]], #8
; CHECK-NEXT: adds [[REG0]], :lower8_15:bar
-; CHECK-NEXT: lsls [[REG0]], r0, #8
+; CHECK-NEXT: lsls [[REG0]], [[REG0]], #8
; CHECK-NEXT: adds [[REG0]], :lower0_7:bar
; CHECK-NEXT: blx [[REG0]]
-; CHECK-NOT: .LCPI1_0:
+; CHECK-NOT: ldr
entry:
call void @bar()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154355.536780.patch
Type: text/x-patch
Size: 1234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230703/dd6a1c22/attachment.bin>
More information about the llvm-commits
mailing list