[llvm] r286255 - [InstCombine] update checks; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 10:06:14 PST 2016
Author: spatel
Date: Tue Nov 8 12:06:14 2016
New Revision: 286255
URL: http://llvm.org/viewvc/llvm-project?rev=286255&view=rev
Log:
[InstCombine] update checks; NFC
Modified:
llvm/trunk/test/Transforms/InstCombine/pr27236.ll
Modified: llvm/trunk/test/Transforms/InstCombine/pr27236.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/pr27236.ll?rev=286255&r1=286254&r2=286255&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/pr27236.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/pr27236.ll Tue Nov 8 12:06:14 2016
@@ -1,7 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -instcombine < %s | FileCheck %s
define float @test1(i32 %scale) {
-entry:
+; CHECK-LABEL: @test1(
+; CHECK-NEXT: [[TMP1:%.*]] = icmp slt i32 %scale, 1
+; CHECK-NEXT: [[TMP2:%.*]] = select i1 [[TMP1]], i32 1, i32 %scale
+; CHECK-NEXT: [[TMP3:%.*]] = sitofp i32 [[TMP2]] to float
+; CHECK-NEXT: [[TMP4:%.*]] = icmp sgt i32 [[TMP2]], 0
+; CHECK-NEXT: [[SEL:%.*]] = select i1 [[TMP4]], float [[TMP3]], float 0.000000e+00
+; CHECK-NEXT: ret float [[SEL]]
+;
%tmp1 = icmp sgt i32 1, %scale
%tmp2 = select i1 %tmp1, i32 1, i32 %scale
%tmp3 = sitofp i32 %tmp2 to float
@@ -10,10 +18,3 @@ entry:
ret float %sel
}
-; CHECK-LABEL: define float @test1(
-; CHECK: %[[tmp1:.*]] = icmp slt i32 %scale, 1
-; CHECK: %[[tmp2:.*]] = select i1 %[[tmp1]], i32 1, i32 %scale
-; CHECK: %[[tmp3:.*]] = sitofp i32 %[[tmp2]] to float
-; CHECK: %[[tmp4:.*]] = icmp sgt i32 %[[tmp2]], 0
-; CHECK: %[[sel:.*]] = select i1 %[[tmp4]], float %[[tmp3]], float 0.000000e+00
-; CHECK: ret float %[[sel]]
More information about the llvm-commits
mailing list