summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2015-10-21 21:50:58 +0000
committerMichael Liao <michael.liao@intel.com>2015-10-21 21:50:58 +0000
commit446c714a7673e246281b8d3bccd1c77cc9256e4e (patch)
treedca262fbd8591ac88d1b206469029fbd995cf827
parent71554fe21bd08ed0717c6a73c5913bdb873c9806 (diff)
downloadbcm5719-llvm-446c714a7673e246281b8d3bccd1c77cc9256e4e.tar.gz
bcm5719-llvm-446c714a7673e246281b8d3bccd1c77cc9256e4e.zip
[InstCombine] Revise the test case to match full sequene
llvm-svn: 250950
-rw-r--r--llvm/test/Transforms/InstCombine/icmp.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/icmp.ll b/llvm/test/Transforms/InstCombine/icmp.ll
index 05f6678e354..a85bee5c2c9 100644
--- a/llvm/test/Transforms/InstCombine/icmp.ll
+++ b/llvm/test/Transforms/InstCombine/icmp.ll
@@ -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 %i) {
; 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 %i) {
; 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 %i) {
; 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
OpenPOWER on IntegriCloud