diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-25 21:40:37 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-25 21:40:37 +0000 |
commit | 6292eceea07d142c10aff86362fdaa12ef7878ea (patch) | |
tree | 674d5752f292f53e3415f532e4dc94bbd79d14ae /test/CodeGen/X86 | |
parent | 06ef923d1491b056555ebcb5cb276f8acd322187 (diff) | |
download | external_llvm-6292eceea07d142c10aff86362fdaa12ef7878ea.zip external_llvm-6292eceea07d142c10aff86362fdaa12ef7878ea.tar.gz external_llvm-6292eceea07d142c10aff86362fdaa12ef7878ea.tar.bz2 |
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')
-rw-r--r-- | test/CodeGen/X86/avx-vmovddup.ll | 14 |
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 0000000..1c56fe2 --- /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 +} |