; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s ; CHECK: vpermilps define <8 x float> @funcA(<8 x float> %a) nounwind uwtable readnone ssp { entry: %shuffle = shufflevector <8 x float> %a, <8 x float> undef, <8 x i32> ret <8 x float> %shuffle } ; CHECK: vpermilpd define <4 x double> @funcB(<4 x double> %a) nounwind uwtable readnone ssp { entry: %shuffle = shufflevector <4 x double> %a, <4 x double> undef, <4 x i32> ret <4 x double> %shuffle } ; CHECK: vpermilps define <8 x i32> @funcC(<8 x i32> %a) nounwind uwtable readnone ssp { entry: %shuffle = shufflevector <8 x i32> %a, <8 x i32> undef, <8 x i32> ret <8 x i32> %shuffle } ; CHECK: vpermilpd define <4 x i64> @funcD(<4 x i64> %a) nounwind uwtable readnone ssp { entry: %shuffle = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> ret <4 x i64> %shuffle }