2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -constprop -disable-output
|
2008-07-08 05:46:34 +00:00
|
|
|
; PR2529
|
2009-07-08 03:04:38 +00:00
|
|
|
define <4 x i1> @test1(i32 %argc, i8** %argv) {
|
2008-07-08 05:46:34 +00:00
|
|
|
entry:
|
2009-07-08 03:04:38 +00:00
|
|
|
%foo = icmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <4 x i1> %foo
|
2008-07-08 05:46:34 +00:00
|
|
|
}
|
|
|
|
|
2009-07-08 03:04:38 +00:00
|
|
|
define <4 x i1> @test2(i32 %argc, i8** %argv) {
|
2008-07-08 05:46:34 +00:00
|
|
|
entry:
|
2009-07-08 03:04:38 +00:00
|
|
|
%foo = icmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
|
2008-07-08 05:46:34 +00:00
|
|
|
undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
|
2009-07-08 03:04:38 +00:00
|
|
|
ret <4 x i1> %foo
|
2008-07-08 05:46:34 +00:00
|
|
|
}
|
2008-07-10 00:08:17 +00:00
|
|
|
|
|
|
|
|
2009-07-08 03:04:38 +00: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 00:08:17 +00:00
|
|
|
undef>, <float 1.0, float 1.0, float 1.0, float undef>
|
2009-07-08 03:04:38 +00:00
|
|
|
ret <4 x i1> %foo
|
2008-07-10 00:08:17 +00:00
|
|
|
}
|
|
|
|
|
2009-07-08 03:04:38 +00: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 00:29:28 +00:00
|
|
|
|
2009-07-08 03:04:38 +00:00
|
|
|
ret <4 x i1> %foo
|
2008-07-10 00:29:28 +00:00
|
|
|
}
|
|
|
|
|