diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2011-11-23 10:23:16 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2011-11-23 10:23:16 +0000 |
commit | 779ba6d7b72bb52d6f46d273bed0ae45af075b12 (patch) | |
tree | a735dd3d8fa2fb35615703b99b143d9e98bedd82 /llvm/test/CodeGen/X86/avx-vshufp.ll | |
parent | 8c68f1f3c8990ee8424c601d1587d0f11a1735b9 (diff) | |
download | bcm5719-llvm-779ba6d7b72bb52d6f46d273bed0ae45af075b12.tar.gz bcm5719-llvm-779ba6d7b72bb52d6f46d273bed0ae45af075b12.zip |
I added several lines in X86 code generator that allow to choose
VSHUFPS/VSHUFPD instructions while lowering VECTOR_SHUFFLE node. I check a commuted VSHUFP mask.
The patch was reviewed by Bruno.
llvm-svn: 145099
Diffstat (limited to 'llvm/test/CodeGen/X86/avx-vshufp.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/avx-vshufp.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx-vshufp.ll b/llvm/test/CodeGen/X86/avx-vshufp.ll index f06548dc3d6..7ec3a44e799 100644 --- a/llvm/test/CodeGen/X86/avx-vshufp.ll +++ b/llvm/test/CodeGen/X86/avx-vshufp.ll @@ -27,3 +27,17 @@ entry: %shuffle = shufflevector <4 x double> %a, <4 x double> %b, <4 x i32> <i32 0, i32 5, i32 2, i32 undef> ret <4 x double> %shuffle } + +; CHECK: vshufps $-55, %ymm +define <8 x float> @E(<8 x float> %a, <8 x float> %b) nounwind uwtable readnone ssp { +entry: + %shuffle = shufflevector <8 x float> %a, <8 x float> %b, <8 x i32> <i32 9, i32 10, i32 0, i32 3, i32 13, i32 14, i32 4, i32 7> + ret <8 x float> %shuffle +} + +; CHECK: vshufpd $8, %ymm +define <4 x double> @F(<4 x double> %a, <4 x double> %b) nounwind uwtable readnone ssp { +entry: + %shuffle = shufflevector <4 x double> %a, <4 x double> %b, <4 x i32> <i32 0, i32 4, i32 2, i32 7> + ret <4 x double> %shuffle +} |