Chris Lattner | 843ecd6 | 2006-04-18 03:22:16 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 && |
Chris Lattner | a637e58 | 2006-04-18 03:54:50 +0000 | [diff] [blame^] | 2 | ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep mullw && |
Chris Lattner | 843ecd6 | 2006-04-18 03:22:16 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vmsumuhm |
| 4 | |
Chris Lattner | a637e58 | 2006-04-18 03:54:50 +0000 | [diff] [blame^] | 5 | <4 x int> %test_v4i32(<4 x int>* %X, <4 x int>* %Y) { |
Chris Lattner | 843ecd6 | 2006-04-18 03:22:16 +0000 | [diff] [blame] | 6 | %tmp = load <4 x int>* %X |
| 7 | %tmp2 = load <4 x int>* %Y |
| 8 | %tmp3 = mul <4 x int> %tmp, %tmp2 |
| 9 | ret <4 x int> %tmp3 |
| 10 | } |
| 11 | |
Chris Lattner | a637e58 | 2006-04-18 03:54:50 +0000 | [diff] [blame^] | 12 | <8 x short> %test_v8i16(<8 x short>* %X, <8 x short>* %Y) { |
| 13 | %tmp = load <8 x short>* %X |
| 14 | %tmp2 = load <8 x short>* %Y |
| 15 | %tmp3 = mul <8 x short> %tmp, %tmp2 |
| 16 | ret <8 x short> %tmp3 |
| 17 | } |
| 18 | |
| 19 | <16 x sbyte> %test_v16i8(<16 x sbyte>* %X, <16 x sbyte>* %Y) { |
| 20 | %tmp = load <16 x sbyte>* %X |
| 21 | %tmp2 = load <16 x sbyte>* %Y |
| 22 | %tmp3 = mul <16 x sbyte> %tmp, %tmp2 |
| 23 | ret <16 x sbyte> %tmp3 |
| 24 | } |
| 25 | |