Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | 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) { |
| 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 |
| 13 | } |
| 14 | |
| 15 | <4 x uint> %test_shufflevector_u(<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_f(<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 | } |