blob: 2c3594d224fe02fd00f04646f5cd21506a34d0ca [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -mcpu=g5 | not grep vperm
Chris Lattner6e98b492006-04-17 05:27:31 +00002
Tanya Lattnera99d8b52008-02-19 08:07:33 +00003define <4 x float> @test_uu72(<4 x float>* %P1, <4 x float>* %P2) {
4 %V1 = load <4 x float>* %P1 ; <<4 x float>> [#uses=1]
5 %V2 = load <4 x float>* %P2 ; <<4 x float>> [#uses=1]
6 %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, <4 x i32> < i32 undef, i32 undef, i32 7, i32 2 > ; <<4 x float>> [#uses=1]
Chris Lattner6e98b492006-04-17 05:27:31 +00007 ret <4 x float> %V3
8}
9
Tanya Lattnera99d8b52008-02-19 08:07:33 +000010define <4 x float> @test_30u5(<4 x float>* %P1, <4 x float>* %P2) {
11 %V1 = load <4 x float>* %P1 ; <<4 x float>> [#uses=1]
12 %V2 = load <4 x float>* %P2 ; <<4 x float>> [#uses=1]
13 %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, <4 x i32> < i32 3, i32 0, i32 undef, i32 5 > ; <<4 x float>> [#uses=1]
Chris Lattner6e98b492006-04-17 05:27:31 +000014 ret <4 x float> %V3
15}
16
Tanya Lattnera99d8b52008-02-19 08:07:33 +000017define <4 x float> @test_3u73(<4 x float>* %P1, <4 x float>* %P2) {
18 %V1 = load <4 x float>* %P1 ; <<4 x float>> [#uses=1]
19 %V2 = load <4 x float>* %P2 ; <<4 x float>> [#uses=1]
20 %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, <4 x i32> < i32 3, i32 undef, i32 7, i32 3 > ; <<4 x float>> [#uses=1]
Chris Lattner6e98b492006-04-17 05:27:31 +000021 ret <4 x float> %V3
22}
23
Tanya Lattnera99d8b52008-02-19 08:07:33 +000024define <4 x float> @test_3774(<4 x float>* %P1, <4 x float>* %P2) {
25 %V1 = load <4 x float>* %P1 ; <<4 x float>> [#uses=1]
26 %V2 = load <4 x float>* %P2 ; <<4 x float>> [#uses=1]
27 %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, <4 x i32> < i32 3, i32 7, i32 7, i32 4 > ; <<4 x float>> [#uses=1]
Chris Lattner6e98b492006-04-17 05:27:31 +000028 ret <4 x float> %V3
29}
30
Tanya Lattnera99d8b52008-02-19 08:07:33 +000031define <4 x float> @test_4450(<4 x float>* %P1, <4 x float>* %P2) {
32 %V1 = load <4 x float>* %P1 ; <<4 x float>> [#uses=1]
33 %V2 = load <4 x float>* %P2 ; <<4 x float>> [#uses=1]
34 %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, <4 x i32> < i32 4, i32 4, i32 5, i32 0 > ; <<4 x float>> [#uses=1]
Chris Lattner6e98b492006-04-17 05:27:31 +000035 ret <4 x float> %V3
36}