diff options
author | Asaf Badouh <asaf.badouh@intel.com> | 2015-10-27 15:37:17 +0000 |
---|---|---|
committer | Asaf Badouh <asaf.badouh@intel.com> | 2015-10-27 15:37:17 +0000 |
commit | c7cb88066990d9b794c208252e13ef48a56b2439 (patch) | |
tree | 692997512139343c1f5773ca32d066a90f5d7779 /llvm/test/CodeGen | |
parent | ce0d48adbb8ac9350caf7513ed4e5e99404f0d0f (diff) | |
download | bcm5719-llvm-c7cb88066990d9b794c208252e13ef48a56b2439.tar.gz bcm5719-llvm-c7cb88066990d9b794c208252e13ef48a56b2439.zip |
[X86][AVX512] [X86][AVX512] add convert float to half
convert float to half with mask/maskz for the reg to reg version and mask for the reg to mem version (there is no maskz version for reg to mem).
Differential Revision: http://reviews.llvm.org/D14113
llvm-svn: 251409
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/X86/avx512vl-intrinsics.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/avx512vl-intrinsics.ll b/llvm/test/CodeGen/X86/avx512vl-intrinsics.ll index c828411350e..f056c272135 100644 --- a/llvm/test/CodeGen/X86/avx512vl-intrinsics.ll +++ b/llvm/test/CodeGen/X86/avx512vl-intrinsics.ll @@ -5315,3 +5315,22 @@ define <8 x float> @test_x86_vcvtph2ps_256_rrkz(<8 x i16> %a0, i8 %mask) { } declare <8 x float> @llvm.x86.avx512.mask.vcvtph2ps.256(<8 x i16>, <8 x float>, i8) nounwind readonly + +define <8 x i16> @test_x86_vcvtps2ph_128(<4 x float> %a0) { + ; CHECK: test_x86_vcvtps2ph_128 + ; CHECK: vcvtps2ph $2, %xmm0, %xmm0 + %res = call <8 x i16> @llvm.x86.avx512.mask.vcvtps2ph.128(<4 x float> %a0, i32 2, <8 x i16> zeroinitializer, i8 -1) + ret <8 x i16> %res +} + + +declare <8 x i16> @llvm.x86.avx512.mask.vcvtps2ph.128(<4 x float>, i32, <8 x i16>, i8) nounwind readonly + +define <8 x i16> @test_x86_vcvtps2ph_256(<8 x float> %a0) { + ; CHECK: test_x86_vcvtps2ph_256 + ; CHECK: vcvtps2ph $2, %ymm0, %xmm0 + %res = call <8 x i16> @llvm.x86.avx512.mask.vcvtps2ph.256(<8 x float> %a0, i32 2, <8 x i16> zeroinitializer, i8 -1) + ret <8 x i16> %res +} + +declare <8 x i16> @llvm.x86.avx512.mask.vcvtps2ph.256(<8 x float>, i32, <8 x i16>, i8) nounwind readonly |