diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-03 19:46:03 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-03 19:46:03 +0000 | 
| commit | c8e14b3d37b80abb6adb4b831af0452d9ecbf2b2 (patch) | |
| tree | 82f5c1caf2f2072cfb903e28fbde8df7b103e0c7 /test | |
| parent | fec8657351346966e48f9248079e85602dc1f85d (diff) | |
| download | external_llvm-c8e14b3d37b80abb6adb4b831af0452d9ecbf2b2.zip external_llvm-c8e14b3d37b80abb6adb4b831af0452d9ecbf2b2.tar.gz external_llvm-c8e14b3d37b80abb6adb4b831af0452d9ecbf2b2.tar.bz2 | |
fix incorrect folding of icmp with undef, PR6481.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
| -rw-r--r-- | test/Transforms/InstCombine/icmp.ll | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll index c2234a1..29997bf 100644 --- a/test/Transforms/InstCombine/icmp.ll +++ b/test/Transforms/InstCombine/icmp.ll @@ -48,7 +48,7 @@ entry:    %V = icmp eq <2 x i64> %x, undef    ret <2 x i1> %V  ; CHECK: @test5 -; CHECK: ret <2 x i1> undef +; CHECK: ret <2 x i1> <i1 true, i1 true>  }  define i32 @test6(i32 %a, i32 %b) { @@ -121,3 +121,13 @@ define i1 @test12(i1 %A) {  ; CHECK-NEXT: %B = select i1  ; CHECK-NEXT: ret i1 %B  } + +; PR6481 +define i1 @test13(i8 %X) nounwind readnone { +entry: +        %cmp = icmp slt i8 undef, %X +        ret i1 %cmp +; CHECK: @test13 +; CHECK: ret i1 false +} + | 
