diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-08-09 21:51:56 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2010-08-09 21:51:56 +0000 |
commit | 93f6c1ec6e557072d1163a4f94b38bc80b9a390f (patch) | |
tree | ffb71b264bb0f74b6b59cdd162659d6a458ea6ee /lib/Target/X86 | |
parent | 2739896cdd3c987de3d7f9a41217b4b954287c8d (diff) | |
download | external_llvm-93f6c1ec6e557072d1163a4f94b38bc80b9a390f.zip external_llvm-93f6c1ec6e557072d1163a4f94b38bc80b9a390f.tar.gz external_llvm-93f6c1ec6e557072d1163a4f94b38bc80b9a390f.tar.bz2 |
Add VCVTPD2PS, VCVTPS2DQ, VCVTPS2PDY, VCVTTPD2DQY, VCVTTPS2DQ and VCVTPD2DQ 256-bit conversion intrinsics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86InstrSSE.td | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 36ffc29..37ed921 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -1126,6 +1126,31 @@ def : Pat<(int_x86_avx_cvtdq2_ps_256 VR256:$src), def : Pat<(int_x86_avx_cvtdq2_ps_256 (memopv8i32 addr:$src)), (VCVTDQ2PSYrm addr:$src)>; +def : Pat<(int_x86_avx_cvt_pd2_ps_256 VR256:$src), + (VCVTPD2PSYrr VR256:$src)>; +def : Pat<(int_x86_avx_cvt_pd2_ps_256 (memopv4f64 addr:$src)), + (VCVTPD2PSYrm addr:$src)>; + +def : Pat<(int_x86_avx_cvt_ps2dq_256 VR256:$src), + (VCVTPS2DQYrr VR256:$src)>; +def : Pat<(int_x86_avx_cvt_ps2dq_256 (memopv8f32 addr:$src)), + (VCVTPS2DQYrm addr:$src)>; + +def : Pat<(int_x86_avx_cvt_ps2_pd_256 VR128:$src), + (VCVTPS2PDYrr VR128:$src)>; +def : Pat<(int_x86_avx_cvt_ps2_pd_256 (memopv4f32 addr:$src)), + (VCVTPS2PDYrm addr:$src)>; + +def : Pat<(int_x86_avx_cvtt_pd2dq_256 VR256:$src), + (VCVTTPD2DQYrr VR256:$src)>; +def : Pat<(int_x86_avx_cvtt_pd2dq_256 (memopv4f64 addr:$src)), + (VCVTTPD2DQYrm addr:$src)>; + +def : Pat<(int_x86_avx_cvtt_ps2dq_256 VR256:$src), + (VCVTTPS2DQYrr VR256:$src)>; +def : Pat<(int_x86_avx_cvtt_ps2dq_256 (memopv8f32 addr:$src)), + (VCVTTPS2DQYrm addr:$src)>; + //===----------------------------------------------------------------------===// // SSE 1 & 2 - Compare Instructions //===----------------------------------------------------------------------===// @@ -3255,6 +3280,11 @@ def : Pat<(int_x86_avx_cvtdq2_pd_256 VR128:$src), def : Pat<(int_x86_avx_cvtdq2_pd_256 (memopv4i32 addr:$src)), (VCVTDQ2PDYrm addr:$src)>; +def : Pat<(int_x86_avx_cvt_pd2dq_256 VR256:$src), + (VCVTPD2DQYrr VR256:$src)>; +def : Pat<(int_x86_avx_cvt_pd2dq_256 (memopv4f64 addr:$src)), + (VCVTPD2DQYrm addr:$src)>; + //===---------------------------------------------------------------------===// // SSE3 - Move Instructions //===---------------------------------------------------------------------===// |