The vpermilps and vpermilpd have different behaviour regarding the
[oota-llvm.git] / test / CodeGen / X86 / avx-vpermil.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3 ; CHECK: vpermilps
4 define <8 x float> @funcA(<8 x float> %a) nounwind uwtable readnone ssp {
5 entry:
6   %shuffle = shufflevector <8 x float> %a, <8 x float> undef, <8 x i32> <i32 1, i32 2, i32 3, i32 1, i32 5, i32 6, i32 7, i32 5>
7   ret <8 x float> %shuffle
8 }
9
10 ; CHECK: vpermilpd
11 define <4 x double> @funcB(<4 x double> %a) nounwind uwtable readnone ssp {
12 entry:
13   %shuffle = shufflevector <4 x double> %a, <4 x double> undef, <4 x i32> <i32 1, i32 0, i32 3, i32 3>
14   ret <4 x double> %shuffle
15 }
16