[llvm] 1f082d2 - [ARM] make execute only long call test checks more robust
Ties Stuij via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 4 02:52:11 PDT 2023
Author: Ties Stuij
Date: 2023-07-04T10:51:48+01:00
New Revision: 1f082d2da0d7332e36c48ba3c626f01c464954de
URL: https://github.com/llvm/llvm-project/commit/1f082d2da0d7332e36c48ba3c626f01c464954de
DIFF: https://github.com/llvm/llvm-project/commit/1f082d2da0d7332e36c48ba3c626f01c464954de.diff
LOG: [ARM] make execute only long call test checks more robust
Reviewed By: olista01
Differential Revision: https://reviews.llvm.org/D154355
Added:
Modified:
llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll b/llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
index 06735e16b56fa8..6a29227a141e73 100644
--- a/llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
+++ b/llvm/test/CodeGen/Thumb/thumb-execute-only-long-calls.ll
@@ -1,11 +1,11 @@
-; RUN: llc < %s -mtriple=thumbv6m-arm-none-eabi -relocation-model=static | FileCheck %s -check-prefixes=CHECK
+; RUN: llc < %s -mtriple=thumbv6m-none-eabi -relocation-model=static | FileCheck %s -check-prefixes=CHECK
define void @fn() #0 {
entry:
; CHECK-LABEL: fn:
-; CHECK: ldr [[REG:r[0-9]+]], .LCPI0_0
+; CHECK: ldr [[REG:r[0-9]+]], [[LABEL:[^\s]+]]
; CHECK-NEXT: blx [[REG]]
-; CHECK: .LCPI0_0:
+; CHECK: [[LABEL]]:
; CHECK-NEXT: .long bar
call void @bar()
ret void
@@ -14,14 +14,14 @@ entry:
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()
More information about the llvm-commits
mailing list