blob: a65adead691feee30229402f44927f165d862806 [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}