1 ; RUN: llc -verify-machineinstrs -ppc-disable-perfect-shuffle=false < %s | FileCheck %s
3 ; TODO: Fix this case when disabling perfect shuffle
5 target datalayout = "E-m:e-i64:64-n32:64"
6 target triple = "powerpc64-unknown-linux-gnu"
8 ; Function Attrs: nounwind
9 define <2 x i32> @test1(<4 x i32> %wide.vec) #0 {
11 %strided.vec = shufflevector <4 x i32> %wide.vec, <4 x i32> undef, <2 x i32> <i32 0, i32 2>
12 ret <2 x i32> %strided.vec
15 ; CHECK: xxswapd 0, 34
16 ; CHECK: xxmrghw 34, 34, 0
20 ; Function Attrs: nounwind
21 define <16 x i8> @test2(<16 x i8> %wide.vec) #0 {
23 %strided.vec = shufflevector <16 x i8> %wide.vec, <16 x i8> undef, <16 x i32> <i32 undef, i32 undef, i32 undef, i32 undef, i32 0, i32 1, i32 2, i32 3, i32 undef, i32 undef, i32 undef, i32 undef, i32 8, i32 9, i32 10, i32 11>
24 ret <16 x i8> %strided.vec
27 ; CHECK: xxsldwi 34, 34, 34, 3
31 attributes #0 = { nounwind "target-cpu"="pwr7" }