diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-08-20 11:00:29 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-08-20 11:00:29 +0000 |
commit | 38cd21a3e9533215b6abf5750d715d0596720542 (patch) | |
tree | e19c378b6c7e57328f7823c387cb202c3697f05b /test | |
parent | c5158b869bbde7b08c486c6f326bd1c701367c98 (diff) | |
download | external_llvm-38cd21a3e9533215b6abf5750d715d0596720542.zip external_llvm-38cd21a3e9533215b6abf5750d715d0596720542.tar.gz external_llvm-38cd21a3e9533215b6abf5750d715d0596720542.tar.bz2 |
AVX-512: Added more patterns for VMOVSS, VMOVSD, VMOVD, VMOVQ
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx512-mov.ll | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-mov.ll b/test/CodeGen/X86/avx512-mov.ll index 3070862..6ac4872 100644 --- a/test/CodeGen/X86/avx512-mov.ll +++ b/test/CodeGen/X86/avx512-mov.ll @@ -73,3 +73,30 @@ define i64 @test9(<2 x i64> %x) { %res = extractelement <2 x i64> %x, i32 0 ret i64 %res } + +; CHECK-LABEL: @test10 +; CHECK: vmovdz (%rdi) +; CHECK: ret +define <4 x i32> @test10(i32* %x) { + %y = load i32* %x, align 4 + %res = insertelement <4 x i32>zeroinitializer, i32 %y, i32 0 + ret <4 x i32>%res +} + +; CHECK-LABEL: @test11 +; CHECK: vmovssz (%rdi) +; CHECK: ret +define <4 x float> @test11(float* %x) { + %y = load float* %x, align 4 + %res = insertelement <4 x float>zeroinitializer, float %y, i32 0 + ret <4 x float>%res +} + +; CHECK-LABEL: @test12 +; CHECK: vmovsdz (%rdi) +; CHECK: ret +define <2 x double> @test12(double* %x) { + %y = load double* %x, align 8 + %res = insertelement <2 x double>zeroinitializer, double %y, i32 0 + ret <2 x double>%res +} |