[llvm] b2c5e9b - [ARM] iabs.ll - regenerate test checks

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 08:36:52 PDT 2024


Author: Simon Pilgrim
Date: 2024-05-14T16:36:39+01:00
New Revision: b2c5e9b9bf2a1cb4a8d4fc67f3201db55ae2cae1

URL: https://github.com/llvm/llvm-project/commit/b2c5e9b9bf2a1cb4a8d4fc67f3201db55ae2cae1
DIFF: https://github.com/llvm/llvm-project/commit/b2c5e9b9bf2a1cb4a8d4fc67f3201db55ae2cae1.diff

LOG: [ARM] iabs.ll - regenerate test checks

Added: 
    

Modified: 
    llvm/test/CodeGen/ARM/iabs.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/ARM/iabs.ll b/llvm/test/CodeGen/ARM/iabs.ll
index bcedcc8fe63bb..fffa9555b2966 100644
--- a/llvm/test/CodeGen/ARM/iabs.ll
+++ b/llvm/test/CodeGen/ARM/iabs.ll
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
 ; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s
 
 ;; Integer absolute value, should produce something as good as: ARM:
@@ -6,13 +7,15 @@
 ;;   bx lr
 
 define i32 @test(i32 %a) {
-        %tmp1neg = sub i32 0, %a
-        %b = icmp sgt i32 %a, -1
-        %abs = select i1 %b, i32 %a, i32 %tmp1neg
-        ret i32 %abs
-; CHECK:  cmp
-; CHECK:  rsbmi r0, r0, #0
-; CHECK:  bx lr
+; CHECK-LABEL: test:
+; CHECK:       @ %bb.0:
+; CHECK-NEXT:    cmp r0, #0
+; CHECK-NEXT:    rsbmi r0, r0, #0
+; CHECK-NEXT:    bx lr
+  %tmp1neg = sub i32 0, %a
+  %b = icmp sgt i32 %a, -1
+  %abs = select i1 %b, i32 %a, i32 %tmp1neg
+  ret i32 %abs
 }
 
 ; rdar://11633193
@@ -21,11 +24,12 @@ define i32 @test(i32 %a) {
 ;;   rsbmi
 ;;   bx
 define i32 @test2(i32 %a, i32 %b) nounwind readnone ssp {
+; CHECK-LABEL: test2:
+; CHECK:       @ %bb.0: @ %entry
+; CHECK-NEXT:    subs r0, r0, r1
+; CHECK-NEXT:    rsbmi r0, r0, #0
+; CHECK-NEXT:    bx lr
 entry:
-; CHECK: test2
-; CHECK: subs
-; CHECK-NEXT: rsbmi
-; CHECK-NEXT: bx
   %sub = sub nsw i32 %a, %b
   %cmp = icmp sgt i32 %sub, -1
   %sub1 = sub nsw i32 0, %sub


        


More information about the llvm-commits mailing list