[llvm-commits] [llvm] r127149 - /llvm/trunk/test/Transforms/InstCombine/icmp.ll

Nick Lewycky nicholas at mxc.ca
Sun Mar 6 18:10:18 PST 2011


Author: nicholas
Date: Sun Mar  6 20:10:18 2011
New Revision: 127149

URL: http://llvm.org/viewvc/llvm-project?rev=127149&view=rev
Log:
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.

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=127149&r1=127148&r2=127149&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/icmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/icmp.ll Sun Mar  6 20:10:18 2011
@@ -488,8 +488,8 @@
 
 ; 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





More information about the llvm-commits mailing list