[X86] Avoid introducing extra shuffles when lowering packed vector shifts.
[oota-llvm.git] / test / CodeGen / X86 / vshift-4.ll
index a060cf803727c89dd4c3e38bfa3594aa25681d7f..cda9bc893a2d025923725f318c253035737e1e7e 100644 (file)
@@ -57,7 +57,7 @@ entry:
 define void @shift3a(<8 x i16> %val, <8 x i16>* %dst, <8 x i16> %amt) nounwind {
 entry:
 ; CHECK-LABEL: shift3a:
-; CHECK: movzwl
+; CHECK: pextrw $6
 ; CHECK: psllw
   %shamt = shufflevector <8 x i16> %amt, <8 x i16> undef, <8 x i32> <i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6>
   %shl = shl <8 x i16> %val, %shamt