blob: 99cec7699c90b32cdb5223ceb529e9717edd37f0 [file] [log] [blame]
Chris Lattner5e1b72c2006-01-10 20:00:20 +00001; 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
5uint %test_extractelement(<4 x uint> %V) {
Robert Bocchinof90a87a2006-01-17 20:07:30 +00006 %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 Lattner5e1b72c2006-01-10 20:00:20 +000013}
Chris Lattnerf40210d2006-04-08 01:17:42 +000014
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}