2008-07-09 02:33:33 +08:00
|
|
|
; RUN: llvm-as < %s | opt -constprop -disable-output
|
2008-07-08 13:46:34 +08:00
|
|
|
; PR2529
|
|
|
|
define <4 x i32> @test1(i32 %argc, i8** %argv) {
|
|
|
|
entry:
|
|
|
|
%foo = vicmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <4 x i32> %foo
|
|
|
|
}
|
|
|
|
|
2008-07-10 08:08:17 +08:00
|
|
|
define <4 x i32> @test2(i32 %argc, i8** %argv) {
|
2008-07-08 13:46:34 +08:00
|
|
|
entry:
|
|
|
|
%foo = vicmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
|
|
|
|
undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
|
|
|
|
ret <4 x i32> %foo
|
|
|
|
}
|
2008-07-10 08:08:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
define <4 x i32> @test3() {
|
|
|
|
%foo = vfcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
|
|
|
|
undef>, <float 1.0, float 1.0, float 1.0, float undef>
|
|
|
|
ret <4 x i32> %foo
|
|
|
|
}
|
|
|
|
|
2008-07-10 08:29:28 +08:00
|
|
|
define <4 x i32> @test4() {
|
|
|
|
%foo = vfcmp 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>
|
|
|
|
|
|
|
|
ret <4 x i32> %foo
|
|
|
|
}
|
|
|
|
|