Chris Lattner | bb8ae07 | 2009-08-15 17:01:19 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah -o %t -f |
Mon P Wang | 7549818 | 2009-01-28 23:11:14 +0000 | [diff] [blame] | 2 | ; RUN: not grep pextrw %t |
| 3 | ; RUN: grep pinsrw %t |
| 4 | |
| 5 | ; Test for v8xi16 lowering where we extract the first element of the vector and |
| 6 | ; placed it in the second element of the result. |
| 7 | |
| 8 | define void @test_cl(<8 x i16> addrspace(1)* %dest, <8 x i16> addrspace(1)* %old) nounwind { |
| 9 | entry: |
| 10 | %tmp3 = load <8 x i16> addrspace(1)* %old ; <<8 x i16>> [#uses=1] |
| 11 | %tmp6 = shufflevector <8 x i16> %tmp3, <8 x i16> < i16 0, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef, i16 undef >, <8 x i32> < i32 8, i32 0, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef, i32 undef > ; <<8 x i16>> [#uses=1] |
| 12 | store <8 x i16> %tmp6, <8 x i16> addrspace(1)* %dest |
| 13 | ret void |
| 14 | } |