2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -constprop -disable-output
|
2008-07-08 13:46:34 +08:00
|
|
|
; PR2529
|
2009-07-08 11:04:38 +08:00
|
|
|
define <4 x i1> @test1(i32 %argc, i8** %argv) {
|
2008-07-08 13:46:34 +08:00
|
|
|
entry:
|
2009-07-08 11:04:38 +08:00
|
|
|
%foo = icmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <4 x i1> %foo
|
2008-07-08 13:46:34 +08:00
|
|
|
}
|
|
|
|
|
2009-07-08 11:04:38 +08:00
|
|
|
define <4 x i1> @test2(i32 %argc, i8** %argv) {
|
2008-07-08 13:46:34 +08:00
|
|
|
entry:
|
2009-07-08 11:04:38 +08:00
|
|
|
%foo = icmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
|
2008-07-08 13:46:34 +08:00
|
|
|
undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
|
2009-07-08 11:04:38 +08:00
|
|
|
ret <4 x i1> %foo
|
2008-07-08 13:46:34 +08:00
|
|
|
}
|
2008-07-10 08:08:17 +08:00
|
|
|
|
|
|
|
|
2009-07-08 11:04:38 +08:00
|
|
|
define <4 x i1> @test3() {
|
|
|
|
%foo = fcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
|
2008-07-10 08:08:17 +08:00
|
|
|
undef>, <float 1.0, float 1.0, float 1.0, float undef>
|
2009-07-08 11:04:38 +08:00
|
|
|
ret <4 x i1> %foo
|
2008-07-10 08:08:17 +08:00
|
|
|
}
|
|
|
|
|
2009-07-08 11:04:38 +08:00
|
|
|
define <4 x i1> @test4() {
|
|
|
|
%foo = fcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float 0.0>, <float 1.0, float 1.0, float 1.0, float 0.0>
|
2008-07-10 08:29:28 +08:00
|
|
|
|
2009-07-08 11:04:38 +08:00
|
|
|
ret <4 x i1> %foo
|
2008-07-10 08:29:28 +08:00
|
|
|
}
|
|
|
|
|