Chris Lattner | 4f1a9ff | 2008-07-08 18:33:33 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | opt -constprop -disable-output |
Chris Lattner | d137a08 | 2008-07-08 05:46:34 +0000 | [diff] [blame] | 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 | |
Chris Lattner | b69689e | 2008-07-10 00:08:17 +0000 | [diff] [blame^] | 9 | define <4 x i32> @test2(i32 %argc, i8** %argv) { |
Chris Lattner | d137a08 | 2008-07-08 05:46:34 +0000 | [diff] [blame] | 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 | } |
Chris Lattner | b69689e | 2008-07-10 00:08:17 +0000 | [diff] [blame^] | 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 | |