From bf433e5f46f6de9298bc072da6f02067198eff2a Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 7 Mar 2011 02:10:18 +0000 Subject: [PATCH] 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 --- test/Transforms/InstCombine/icmp.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll index bf0107adf06..a1626835a54 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 -- 2.34.1