4c71463204850118cfb0cb27667641f7db55206f
[oota-llvm.git] / test / Transforms / ConstProp / 2008-07-07-VectorCompare.ll
1 ; RUN: llvm-as < %s | opt -constprop -disable-output
2 ; PR2529
3 define <4 x i32> @test1(i32 %argc, i8** %argv) {
4 entry:  
5         %foo = vicmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
6         ret <4 x i32> %foo
7 }
8
9 define <4 x i32> @test2(i32 %argc, i8** %argv) {
10 entry:  
11         %foo = vicmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
12 undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
13         ret <4 x i32> %foo
14 }
15
16
17 define <4 x i32> @test3() {
18        %foo = vfcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
19 undef>, <float 1.0, float 1.0, float 1.0, float undef>
20         ret <4 x i32> %foo
21 }
22
23 define <4 x i32> @test4() {
24    %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>
25
26         ret <4 x i32> %foo
27 }
28