blob: b42b0248496172ce8b360b506ea2c74ab86f1054 [file] [log] [blame]
Chris Lattner4f1a9ff2008-07-08 18:33:33 +00001; RUN: llvm-as < %s | opt -constprop -disable-output
Chris Lattnerd137a082008-07-08 05:46:34 +00002; PR2529
3define <4 x i32> @test1(i32 %argc, i8** %argv) {
4entry:
5 %foo = vicmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
6 ret <4 x i32> %foo
7}
8
Chris Lattnerb69689e2008-07-10 00:08:17 +00009define <4 x i32> @test2(i32 %argc, i8** %argv) {
Chris Lattnerd137a082008-07-08 05:46:34 +000010entry:
11 %foo = vicmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
12undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
13 ret <4 x i32> %foo
14}
Chris Lattnerb69689e2008-07-10 00:08:17 +000015
16
17define <4 x i32> @test3() {
18 %foo = vfcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
19undef>, <float 1.0, float 1.0, float 1.0, float undef>
20 ret <4 x i32> %foo
21}
22