summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2013-10-02 12:20:42 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2013-10-02 12:20:42 +0000
commitc699417f11dce6d81f630d5b1c82e00dba852b37 (patch)
tree6ae185deadc44aef95cb8b1106c7f9157ea5bcfd /test/CodeGen/X86
parent0d1785a2e64648584d8230172125d171d5f1ca02 (diff)
downloadllvm-c699417f11dce6d81f630d5b1c82e00dba852b37.tar.gz
llvm-c699417f11dce6d81f630d5b1c82e00dba852b37.tar.bz2
llvm-c699417f11dce6d81f630d5b1c82e00dba852b37.tar.xz
AVX-512: fixed a bug in getLoadStoreRegOpcode() for AVX-512 target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/avx512-mov.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-mov.ll b/test/CodeGen/X86/avx512-mov.ll
index c44107be2c..6c5c586afd 100644
--- a/test/CodeGen/X86/avx512-mov.ll
+++ b/test/CodeGen/X86/avx512-mov.ll
@@ -116,3 +116,12 @@ define <4 x i32> @test14(i32 %x) {
%res = insertelement <4 x i32>zeroinitializer, i32 %x, i32 0
ret <4 x i32>%res
}
+
+; CHECK-LABEL: @test15
+; CHECK: vmovdz (%rdi)
+; CHECK: ret
+define <4 x i32> @test15(i32* %x) {
+ %y = load i32* %x, align 4
+ %res = insertelement <4 x i32>zeroinitializer, i32 %y, i32 0
+ ret <4 x i32>%res
+}