Chris Lattner | 5e1b72c | 2006-01-10 20:00:20 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll |
| 2 | ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll |
| 3 | ; RUN: diff %t1.ll %t2.ll |
| 4 | |
| 5 | uint %test_extractelement(<4 x uint> %V) { |
Robert Bocchino | f90a87a | 2006-01-17 20:07:30 +0000 | [diff] [blame] | 6 | %R = extractelement <4 x uint> %V, uint 1 |
| 7 | ret uint %R |
| 8 | } |
| 9 | |
| 10 | <4 x uint> %test_insertelement(<4 x uint> %V) { |
| 11 | %R = insertelement <4 x uint> %V, uint 0, uint 0 |
| 12 | ret <4 x uint> %R |
Chris Lattner | 5e1b72c | 2006-01-10 20:00:20 +0000 | [diff] [blame] | 13 | } |
Chris Lattner | f40210d | 2006-04-08 01:17:42 +0000 | [diff] [blame] | 14 | |
| 15 | <4 x uint> %test_shufflevector(<4 x uint> %V) { |
| 16 | %R = shufflevector <4 x uint> %V, <4 x uint> %V, |
| 17 | <4 x uint> < uint 1, uint undef, uint 7, uint 2> |
| 18 | ret <4 x uint> %R |
| 19 | } |
| 20 | |
| 21 | <4 x float> %test_shufflevector(<4 x float> %V) { |
| 22 | %R = shufflevector <4 x float> %V, <4 x float> undef, |
| 23 | <4 x uint> < uint 1, uint undef, uint 7, uint 2> |
| 24 | ret <4 x float> %R |
| 25 | } |