Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep punpckl | wc -l | grep 7 |
| 2 | |
| 3 | void %test(<8 x short>* %b, short %a0, short %a1, short %a2, short %a3, short %a4, short %a5, short %a6, short %a7) { |
| 4 | %tmp = insertelement <8 x short> zeroinitializer, short %a0, uint 0 |
| 5 | %tmp2 = insertelement <8 x short> %tmp, short %a1, uint 1 |
| 6 | %tmp4 = insertelement <8 x short> %tmp2, short %a2, uint 2 |
| 7 | %tmp6 = insertelement <8 x short> %tmp4, short %a3, uint 3 |
| 8 | %tmp8 = insertelement <8 x short> %tmp6, short %a4, uint 4 |
| 9 | %tmp10 = insertelement <8 x short> %tmp8, short %a5, uint 5 |
| 10 | %tmp12 = insertelement <8 x short> %tmp10, short %a6, uint 6 |
| 11 | %tmp14 = insertelement <8 x short> %tmp12, short %a7, uint 7 |
| 12 | store <8 x short> %tmp14, <8 x short>* %b |
| 13 | ret void |
| 14 | } |