summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2014-01-06 08:45:54 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2014-01-06 08:45:54 +0000
commita56ae89d22828cbf9202b60db5d1d8f17d8f85b8 (patch)
tree1757d0a8c2fbe700f9b18810f4326d9921deed37 /test
parent49e36be48a8df55188d87b0a8dbace157328a219 (diff)
downloadllvm-a56ae89d22828cbf9202b60db5d1d8f17d8f85b8.tar.gz
llvm-a56ae89d22828cbf9202b60db5d1d8f17d8f85b8.tar.bz2
llvm-a56ae89d22828cbf9202b60db5d1d8f17d8f85b8.tar.xz
AVX-512: added intrinsic vcvtpd2ps (with rounding mode and without)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/avx512-intrinsics.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx512-intrinsics.ll b/test/CodeGen/X86/avx512-intrinsics.ll
index a7185f9853..12c3ba25f5 100644
--- a/test/CodeGen/X86/avx512-intrinsics.ll
+++ b/test/CodeGen/X86/avx512-intrinsics.ll
@@ -514,3 +514,10 @@ define <8 x double> @test_vminpd(<8 x double> %a0, <8 x double> %a1) {
}
declare <8 x double> @llvm.x86.avx512.mask.min.pd.512(<8 x double>, <8 x double>,
<8 x double>, i8, i32)
+
+ define <8 x float> @test_cvtpd2ps(<8 x double> %a) {
+ ;CHECK: vcvtpd2ps {rd-sae}{{.*}}encoding: [0x62,0xf1,0xfd,0x38,0x5a,0xc0]
+ %res = call <8 x float> @llvm.x86.avx512.mask.cvtpd2ps.512(<8 x double> %a, <8 x float>zeroinitializer, i8 -1, i32 1)
+ ret <8 x float>%res
+ }
+ declare <8 x float> @llvm.x86.avx512.mask.cvtpd2ps.512(<8 x double>, <8 x float>, i8, i32)