[llvm] 0a1a318 - [ARM] Regenerate combine-movc-sub.ll test checks
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat May 14 05:26:37 PDT 2022
Author: Simon Pilgrim
Date: 2022-05-14T13:25:34+01:00
New Revision: 0a1a318f31195322de0e7977ecbe625abc2f0c29
URL: https://github.com/llvm/llvm-project/commit/0a1a318f31195322de0e7977ecbe625abc2f0c29
DIFF: https://github.com/llvm/llvm-project/commit/0a1a318f31195322de0e7977ecbe625abc2f0c29.diff
LOG: [ARM] Regenerate combine-movc-sub.ll test checks
Added:
Modified:
llvm/test/CodeGen/ARM/combine-movc-sub.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/ARM/combine-movc-sub.ll b/llvm/test/CodeGen/ARM/combine-movc-sub.ll
index 6a5f7bdd38e98..e554c55d16b97 100644
--- a/llvm/test/CodeGen/ARM/combine-movc-sub.ll
+++ b/llvm/test/CodeGen/ARM/combine-movc-sub.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc %s -o - -verify-machineinstrs | FileCheck %s
target datalayout = "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
@@ -21,11 +22,41 @@ target triple = "thumbv7s-apple-unknown"
declare void @foo(%struct.PROOFSEARCH_HELP*, %struct.CLAUSE_HELP*)
-; CHECK-LABEL: @test
-; CHECK: it
-; CHECK-NEXT: sub
-
define hidden fastcc %struct.LIST_HELP* @test(%struct.PROOFSEARCH_HELP* %Search, %struct.LIST_HELP* %ClauseList, i32 %Level, %struct.LIST_HELP** nocapture %New) {
+; CHECK-LABEL: test:
+; CHECK: @ %bb.0: @ %entry
+; CHECK-NEXT: push.w {r4, r5, r6, r7, r8, r9, r10, lr}
+; CHECK-NEXT: sub.w r9, r2, #32
+; CHECK-NEXT: mov r8, r0
+; CHECK-NEXT: movs r0, #1
+; CHECK-NEXT: mov r4, r2
+; CHECK-NEXT: add.w r6, r0, r9, lsr #5
+; CHECK-NEXT: mov r5, r1
+; CHECK-NEXT: lsr.w r7, r9, #5
+; CHECK-NEXT: mov.w r10, #0
+; CHECK-NEXT: b .LBB0_2
+; CHECK-NEXT: .LBB0_1: @ %for.inc
+; CHECK-NEXT: @ in Loop: Header=BB0_2 Depth=1
+; CHECK-NEXT: ldr r5, [r5]
+; CHECK-NEXT: .LBB0_2: @ %for.body
+; CHECK-NEXT: @ =>This Inner Loop Header: Depth=1
+; CHECK-NEXT: ldr r1, [r5, #4]
+; CHECK-NEXT: mov r2, r4
+; CHECK-NEXT: cmp r4, #31
+; CHECK-NEXT: ldr r0, [r1, #16]
+; CHECK-NEXT: add.w r0, r0, r6, lsl #2
+; CHECK-NEXT: ldr r0, [r0, #40]
+; CHECK-NEXT: it hi
+; CHECK-NEXT: subhi.w r2, r9, r7, lsl #5
+; CHECK-NEXT: lsrs r0, r2
+; CHECK-NEXT: lsls r0, r0, #31
+; CHECK-NEXT: beq .LBB0_1
+; CHECK-NEXT: @ %bb.3: @ %if.then
+; CHECK-NEXT: @ in Loop: Header=BB0_2 Depth=1
+; CHECK-NEXT: mov r0, r8
+; CHECK-NEXT: bl foo
+; CHECK-NEXT: str.w r10, [r5, #4]
+; CHECK-NEXT: b .LBB0_1
entry:
%cmp4.i.i = icmp ugt i32 %Level, 31
%0 = add i32 %Level, -32
More information about the llvm-commits
mailing list