aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vshufp.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-11-29 07:58:09 +0000
committerCraig Topper <craig.topper@gmail.com>2011-11-29 07:58:09 +0000
commitf267972d2864545f82f1eac7e922f85280a4d654 (patch)
tree4758e56304928c60f76e736fef02141c9996276b /test/CodeGen/X86/avx-vshufp.ll
parent36e36ace77cf84d7c8326957925550624b3fc89c (diff)
Fix shuffle decoding for memory forms for (V)SHUFPS/D.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vshufp.ll')
-rw-r--r--test/CodeGen/X86/avx-vshufp.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vshufp.ll b/test/CodeGen/X86/avx-vshufp.ll
index 7ec3a44e79..0ccbc594a0 100644
--- a/test/CodeGen/X86/avx-vshufp.ll
+++ b/test/CodeGen/X86/avx-vshufp.ll
@@ -7,6 +7,15 @@ entry:
ret <8 x float> %shuffle
}
+; CHECK: vshufps $-53, (%
+define <8 x float> @A2(<8 x float>* %a, <8 x float>* %b) nounwind uwtable readnone ssp {
+entry:
+ %a2 = load <8 x float>* %a
+ %b2 = load <8 x float>* %b
+ %shuffle = shufflevector <8 x float> %a2, <8 x float> %b2, <8 x i32> <i32 3, i32 2, i32 8, i32 11, i32 7, i32 6, i32 12, i32 15>
+ ret <8 x float> %shuffle
+}
+
; CHECK: vshufpd $10, %ymm
define <4 x double> @B(<4 x double> %a, <4 x double> %b) nounwind uwtable readnone ssp {
entry:
@@ -14,6 +23,15 @@ entry:
ret <4 x double> %shuffle
}
+; CHECK: vshufpd $10, (%
+define <4 x double> @B2(<4 x double>* %a, <4 x double>* %b) nounwind uwtable readnone ssp {
+entry:
+ %a2 = load <4 x double>* %a
+ %b2 = load <4 x double>* %b
+ %shuffle = shufflevector <4 x double> %a2, <4 x double> %b2, <4 x i32> <i32 0, i32 5, i32 2, i32 7>
+ ret <4 x double> %shuffle
+}
+
; CHECK: vshufps $-53, %ymm
define <8 x float> @C(<8 x float> %a, <8 x float> %b) nounwind uwtable readnone ssp {
entry: