summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/icmp.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-01 20:04:40 +0000
committerChris Lattner <sabre@nondot.org>2010-02-01 20:04:40 +0000
commit6304b0dd631ba65f3e325d8ed85a0f770d74d633 (patch)
tree4f3d8083fe8b5d1c868d04141701cdade64fb7c8 /test/Transforms/InstCombine/icmp.ll
parent904c2fadbf44c47b418860f928f435a58da08bb6 (diff)
downloadllvm-6304b0dd631ba65f3e325d8ed85a0f770d74d633.tar.gz
llvm-6304b0dd631ba65f3e325d8ed85a0f770d74d633.tar.bz2
llvm-6304b0dd631ba65f3e325d8ed85a0f770d74d633.tar.xz
fix PR6195, a bug constant folding scalar -> vector compares.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/icmp.ll')
-rw-r--r--test/Transforms/InstCombine/icmp.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/icmp.ll b/test/Transforms/InstCombine/icmp.ll
index 79fa220752..c2234a10e5 100644
--- a/test/Transforms/InstCombine/icmp.ll
+++ b/test/Transforms/InstCombine/icmp.ll
@@ -112,3 +112,12 @@ define i1 @test11(i32 %x) {
; CHECK: ret i1 true
}
+; PR6195
+define i1 @test12(i1 %A) {
+ %S = select i1 %A, i64 -4294967295, i64 8589934591
+ %B = icmp ne i64 bitcast (<2 x i32> <i32 1, i32 -1> to i64), %S
+ ret i1 %B
+; CHECK: @test12
+; CHECK-NEXT: %B = select i1
+; CHECK-NEXT: ret i1 %B
+}