summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vmovddup.ll
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-08-25 21:40:37 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2011-08-25 21:40:37 +0000
commit6292eceea07d142c10aff86362fdaa12ef7878ea (patch)
tree674d5752f292f53e3415f532e4dc94bbd79d14ae /test/CodeGen/X86/avx-vmovddup.ll
parent06ef923d1491b056555ebcb5cb276f8acd322187 (diff)
downloadllvm-6292eceea07d142c10aff86362fdaa12ef7878ea.tar.gz
llvm-6292eceea07d142c10aff86362fdaa12ef7878ea.tar.bz2
llvm-6292eceea07d142c10aff86362fdaa12ef7878ea.tar.xz
Add support for AVX 256-bit version of MOVDDUP!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vmovddup.ll')
-rw-r--r--test/CodeGen/X86/avx-vmovddup.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-vmovddup.ll b/test/CodeGen/X86/avx-vmovddup.ll
new file mode 100644
index 0000000000..1c56fe2b1a
--- /dev/null
+++ b/test/CodeGen/X86/avx-vmovddup.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
+
+; CHECK: vmovddup %ymm
+define <4 x i64> @A(<4 x i64> %a) {
+ %c = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> <i32 0, i32 0, i32 2, i32 2>
+ ret <4 x i64> %c
+}
+
+; CHECK: vmovddup (%
+define <4 x i64> @B(<4 x i64>* %ptr) {
+ %a = load <4 x i64>* %ptr
+ %c = shufflevector <4 x i64> %a, <4 x i64> undef, <4 x i32> <i32 0, i32 0, i32 2, i32 2>
+ ret <4 x i64> %c
+}