X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FPowerPC%2Fvec_perf_shuffle.ll;h=f8b37fae7c23d5bfd55c4cddba5f9e96e3620f5f;hb=77a0728d96eebf324044e7e5b60d2a244b5b6a96;hp=6177b5f4c68a74f11224b9f6b391200741de3aae;hpb=eb1d74e0c8b2c08b98e9175be137ec4ae617a8b7;p=oota-llvm.git diff --git a/test/CodeGen/PowerPC/vec_perf_shuffle.ll b/test/CodeGen/PowerPC/vec_perf_shuffle.ll index 6177b5f4c68..f8b37fae7c2 100644 --- a/test/CodeGen/PowerPC/vec_perf_shuffle.ll +++ b/test/CodeGen/PowerPC/vec_perf_shuffle.ll @@ -1,42 +1,36 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep vperm +; RUN: llc < %s -march=ppc32 -mcpu=g5 | not grep vperm -<4 x float> %test_uu72(<4 x float> *%P1, <4 x float> *%P2) { - %V1 = load <4 x float> *%P1 - %V2 = load <4 x float> *%P2 - ; vmrglw + vsldoi - %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, - <4 x uint> +define <4 x float> @test_uu72(<4 x float>* %P1, <4 x float>* %P2) { + %V1 = load <4 x float>, <4 x float>* %P1 ; <<4 x float>> [#uses=1] + %V2 = load <4 x float>, <4 x float>* %P2 ; <<4 x float>> [#uses=1] + %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] ret <4 x float> %V3 } -<4 x float> %test_30u5(<4 x float> *%P1, <4 x float> *%P2) { - %V1 = load <4 x float> *%P1 - %V2 = load <4 x float> *%P2 - %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, - <4 x uint> +define <4 x float> @test_30u5(<4 x float>* %P1, <4 x float>* %P2) { + %V1 = load <4 x float>, <4 x float>* %P1 ; <<4 x float>> [#uses=1] + %V2 = load <4 x float>, <4 x float>* %P2 ; <<4 x float>> [#uses=1] + %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] ret <4 x float> %V3 } -<4 x float> %test_3u73(<4 x float> *%P1, <4 x float> *%P2) { - %V1 = load <4 x float> *%P1 - %V2 = load <4 x float> *%P2 - %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, - <4 x uint> +define <4 x float> @test_3u73(<4 x float>* %P1, <4 x float>* %P2) { + %V1 = load <4 x float>, <4 x float>* %P1 ; <<4 x float>> [#uses=1] + %V2 = load <4 x float>, <4 x float>* %P2 ; <<4 x float>> [#uses=1] + %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] ret <4 x float> %V3 } -<4 x float> %test_3774(<4 x float> *%P1, <4 x float> *%P2) { - %V1 = load <4 x float> *%P1 - %V2 = load <4 x float> *%P2 - %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, - <4 x uint> +define <4 x float> @test_3774(<4 x float>* %P1, <4 x float>* %P2) { + %V1 = load <4 x float>, <4 x float>* %P1 ; <<4 x float>> [#uses=1] + %V2 = load <4 x float>, <4 x float>* %P2 ; <<4 x float>> [#uses=1] + %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] ret <4 x float> %V3 } -<4 x float> %test_4450(<4 x float> *%P1, <4 x float> *%P2) { - %V1 = load <4 x float> *%P1 - %V2 = load <4 x float> *%P2 - %V3 = shufflevector <4 x float> %V1, <4 x float> %V2, - <4 x uint> +define <4 x float> @test_4450(<4 x float>* %P1, <4 x float>* %P2) { + %V1 = load <4 x float>, <4 x float>* %P1 ; <<4 x float>> [#uses=1] + %V2 = load <4 x float>, <4 x float>* %P2 ; <<4 x float>> [#uses=1] + %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] ret <4 x float> %V3 }