aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/icmp.ll
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-03-07 02:10:18 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-03-07 02:10:18 +0000
commitbf433e5f46f6de9298bc072da6f02067198eff2a (patch)
tree3a865155c0f4311c5cdfdd6096a35ebe3f77c243 /test/Transforms/InstCombine/icmp.ll
parentc14bc77315ac4867f16c1585181b41919339eb3c (diff)
Tweak this test. We can analyze what happens and show that we still do the
right thing, instead of merely being unable to analyze and the transform doesn't occur. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/icmp.ll')
-rw-r--r--test/Transforms/InstCombine/icmp.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll
index bf0107adf0..a1626835a5 100644
--- a/test/Transforms/InstCombine/icmp.ll
+++ b/test/Transforms/InstCombine/icmp.ll
@@ -488,8 +488,8 @@ define i1 @test50(i16 %X, i32 %Y) {
; CHECK: @test51
; CHECK: ret i1 %C
-define i1 @test51(i16 %X, i32 %Y) {
- %A = sext i16 %X to i32
+define i1 @test51(i32 %X, i32 %Y) {
+ %A = and i32 %X, 2147483648
%B = srem i32 %A, %Y
%C = icmp sgt i32 %B, -1
ret i1 %C