[llvm] r250950 - [InstCombine] Revise the test case to match full sequene

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 14:50:59 PDT 2015


Author: hliao
Date: Wed Oct 21 16:50:58 2015
New Revision: 250950

URL: http://llvm.org/viewvc/llvm-project?rev=250950&view=rev
Log:
[InstCombine] Revise the test case to match full sequene


Modified:
    llvm/trunk/test/Transforms/InstCombine/icmp.ll

Modified: llvm/trunk/test/Transforms/InstCombine/icmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/icmp.ll?rev=250950&r1=250949&r2=250950&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/icmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/icmp.ll Wed Oct 21 16:50:58 2015
@@ -1635,7 +1635,7 @@ entry:
 
 ; CHECK-LABEL: @cmp_sgt_rhs_dec
 ; CHECK-NOT: sub
-; CHECK: icmp sge
+; CHECK: icmp sge i32 %conv, %i
 define i1 @cmp_sgt_rhs_dec(float %x, i32 %i) {
   %conv = fptosi float %x to i32
   %dec = sub nsw i32 %i, 1
@@ -1645,7 +1645,7 @@ define i1 @cmp_sgt_rhs_dec(float %x, i32
 
 ; CHECK-LABEL: @cmp_sle_rhs_dec
 ; CHECK-NOT: sub
-; CHECK: icmp slt
+; CHECK: icmp slt i32 %conv, %i
 define i1 @cmp_sle_rhs_dec(float %x, i32 %i) {
   %conv = fptosi float %x to i32
   %dec = sub nsw i32 %i, 1
@@ -1655,7 +1655,7 @@ define i1 @cmp_sle_rhs_dec(float %x, i32
 
 ; CHECK-LABEL: @cmp_sge_rhs_inc
 ; CHECK-NOT: add
-; CHECK: icmp sgt
+; CHECK: icmp sgt i32 %conv, %i
 define i1 @cmp_sge_rhs_inc(float %x, i32 %i) {
   %conv = fptosi float %x to i32
   %inc = add nsw i32 %i, 1
@@ -1665,7 +1665,7 @@ define i1 @cmp_sge_rhs_inc(float %x, i32
 
 ; CHECK-LABEL: @cmp_slt_rhs_inc
 ; CHECK-NOT: add
-; CHECK: icmp sle
+; CHECK: icmp sle i32 %conv, %i
 define i1 @cmp_slt_rhs_inc(float %x, i32 %i) {
   %conv = fptosi float %x to i32
   %inc = add nsw i32 %i, 1




More information about the llvm-commits mailing list