From 79b967bd9fed0a3147d704ce269af6cc26aff391 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Nov 2010 02:42:04 +0000 Subject: duncan's spider sense was right, I completely reversed the condition on this instcombine xform. This fixes a miscompilation of 403.gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119988 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/icmp.ll | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll index 96038ca56b..e33463dbe5 100644 --- a/test/Transforms/InstCombine/icmp.ll +++ b/test/Transforms/InstCombine/icmp.ll @@ -161,7 +161,7 @@ define i1 @test17(i32 %x) nounwind { %cmp = icmp eq i32 %and, 0 ret i1 %cmp ; CHECK: @test17 -; CHECK-NEXT: %cmp = icmp eq i32 %x, 3 +; CHECK-NEXT: %cmp = icmp ne i32 %x, 3 } @@ -171,7 +171,7 @@ define i1 @test18(i32 %x) nounwind { %cmp = icmp eq i32 %and, 0 ret i1 %cmp ; CHECK: @test18 -; CHECK-NEXT: %cmp = icmp eq i32 %x, 3 +; CHECK-NEXT: %cmp = icmp ne i32 %x, 3 } define i1 @test19(i32 %x) nounwind { @@ -180,7 +180,7 @@ define i1 @test19(i32 %x) nounwind { %cmp = icmp eq i32 %and, 8 ret i1 %cmp ; CHECK: @test19 -; CHECK-NEXT: %cmp = icmp ne i32 %x, 3 +; CHECK-NEXT: %cmp = icmp eq i32 %x, 3 } define i1 @test20(i32 %x) nounwind { @@ -189,6 +189,6 @@ define i1 @test20(i32 %x) nounwind { %cmp = icmp ne i32 %and, 0 ret i1 %cmp ; CHECK: @test20 -; CHECK-NEXT: %cmp = icmp ne i32 %x, 3 +; CHECK-NEXT: %cmp = icmp eq i32 %x, 3 } -- cgit v1.2.3