This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH i386 AVX512] [25/n] Add vps[rl]ldq insn patterns.
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Richard Henderson <rth at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, kirill dot yukhin at gmail dot com
- Date: Wed, 27 Aug 2014 16:22:25 +0400
- Subject: [PATCH i386 AVX512] [25/n] Add vps[rl]ldq insn patterns.
- Authentication-results: sourceware.org; auth=none
Hello,
Proposed patch adds patterns for vps[rl]ldq insns
Bootstrapped.
AVX-512* tests on top of patch-set all pass
under simulator.
Is it ok for trunk?
gcc/
* config/i386/sse.md
(define_mode_iterator VIMAX_AVX2): Add V4TI mode.
(define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
(define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
--
Thanks, K
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 6c99d84..a208400 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -331,7 +331,7 @@
;; ??? We should probably use TImode instead.
(define_mode_iterator VIMAX_AVX2
- [(V2TI "TARGET_AVX2") V1TI])
+ [(V4TI "TARGET_AVX512BW") (V2TI "TARGET_AVX2") V1TI])
;; ??? This should probably be dropped in favor of VIMAX_AVX2.
(define_mode_iterator SSESCALARMODE
@@ -8819,9 +8819,9 @@
})
(define_insn "<sse2_avx2>_ashl<mode>3"
- [(set (match_operand:VIMAX_AVX2 0 "register_operand" "=x,x")
+ [(set (match_operand:VIMAX_AVX2 0 "register_operand" "=x,v")
(ashift:VIMAX_AVX2
- (match_operand:VIMAX_AVX2 1 "register_operand" "0,x")
+ (match_operand:VIMAX_AVX2 1 "register_operand" "0,v")
(match_operand:SI 2 "const_0_to_255_mul_8_operand" "n,n")))]
"TARGET_SSE2"
{
@@ -8858,9 +8858,9 @@
})
(define_insn "<sse2_avx2>_lshr<mode>3"
- [(set (match_operand:VIMAX_AVX2 0 "register_operand" "=x,x")
+ [(set (match_operand:VIMAX_AVX2 0 "register_operand" "=x,v")
(lshiftrt:VIMAX_AVX2
- (match_operand:VIMAX_AVX2 1 "register_operand" "0,x")
+ (match_operand:VIMAX_AVX2 1 "register_operand" "0,v")
(match_operand:SI 2 "const_0_to_255_mul_8_operand" "n,n")))]
"TARGET_SSE2"
{