diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-08-04 10:46:07 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2013-08-04 10:46:07 +0000 |
commit | f3e3417e652420a2880fe1efa98ff11936f082e1 (patch) | |
tree | a0ad6ffc98b42bd29a958ee9d39e6fe87aecdf91 /test/CodeGen/X86/avx512-insert-extract.ll | |
parent | b04578c21b6b8c7c94ae138e2fbfa605225d1cde (diff) | |
download | external_llvm-f3e3417e652420a2880fe1efa98ff11936f082e1.zip external_llvm-f3e3417e652420a2880fe1efa98ff11936f082e1.tar.gz external_llvm-f3e3417e652420a2880fe1efa98ff11936f082e1.tar.bz2 |
AVX-512 set: added VEXTRACTPS instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx512-insert-extract.ll')
-rw-r--r-- | test/CodeGen/X86/avx512-insert-extract.ll | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/CodeGen/X86/avx512-insert-extract.ll b/test/CodeGen/X86/avx512-insert-extract.ll index 375ef5c..189bdd7 100644 --- a/test/CodeGen/X86/avx512-insert-extract.ll +++ b/test/CodeGen/X86/avx512-insert-extract.ll @@ -41,4 +41,23 @@ define <8 x i64> @test4(<8 x i64> %x) nounwind { %eee = extractelement <8 x i64> %x, i32 4 %rrr2 = insertelement <8 x i64> %x, i64 %eee, i32 1 ret <8 x i64> %rrr2 -}
\ No newline at end of file +} + +;CHECK: test5 +;CHECK: vextractpsz +;CHECK: ret +define i32 @test5(<4 x float> %x) nounwind { + %ef = extractelement <4 x float> %x, i32 3 + %ei = bitcast float %ef to i32 + ret i32 %ei +} + +;CHECK: test6 +;CHECK: vextractpsz {{.*}}, (%rdi) +;CHECK: ret +define void @test6(<4 x float> %x, float* %out) nounwind { + %ef = extractelement <4 x float> %x, i32 3 + store float %ef, float* %out, align 4 + ret void +} + |