public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5747] Support cbranchm for Vector HI/QImode.
@ 2023-11-22  6:01 hongtao Liu
  0 siblings, 0 replies; only message in thread
From: hongtao Liu @ 2023-11-22  6:01 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2e51fff7ce02a6105aa1acff57cbbdd8a767a33f

commit r14-5747-g2e51fff7ce02a6105aa1acff57cbbdd8a767a33f
Author: liuhongt <hongtao.liu@intel.com>
Date:   Fri Nov 17 10:18:33 2023 +0800

    Support cbranchm for Vector HI/QImode.
    
    gcc/ChangeLog:
    
            * config/i386/sse.md (cbranch<mode>4): Extend to Vector
            HI/QImode.

Diff:
---
 gcc/config/i386/sse.md | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index f94a77d0b6d..4f511693e3f 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -514,6 +514,12 @@
    (V16SI "TARGET_AVX512F && TARGET_EVEX512") (V8SI "TARGET_AVX2") V4SI
    (V8DI "TARGET_AVX512F && TARGET_EVEX512") (V4DI "TARGET_AVX2") V2DI])
 
+(define_mode_iterator VI_AVX_AVX512F
+  [(V64QI "TARGET_AVX512F && TARGET_EVEX512") (V32QI "TARGET_AVX") V16QI
+   (V32HI "TARGET_AVX512F && TARGET_EVEX512") (V16HI "TARGET_AVX") V8HI
+   (V16SI "TARGET_AVX512F && TARGET_EVEX512") (V8SI "TARGET_AVX") V4SI
+   (V8DI "TARGET_AVX512F && TARGET_EVEX512") (V4DI "TARGET_AVX") V2DI])
+
 ;; All QImode vector integer modes
 (define_mode_iterator VI1
   [(V32QI "TARGET_AVX") V16QI])
@@ -27910,8 +27916,8 @@
 
 (define_expand "cbranch<mode>4"
   [(set (reg:CC FLAGS_REG)
-	(compare:CC (match_operand:VI48_AVX_AVX512F 1 "register_operand")
-		    (match_operand:VI48_AVX_AVX512F 2 "nonimmediate_operand")))
+	(compare:CC (match_operand:VI_AVX_AVX512F 1 "register_operand")
+		    (match_operand:VI_AVX_AVX512F 2 "nonimmediate_operand")))
    (set (pc) (if_then_else
 	       (match_operator 0 "bt_comparison_operator"
 		[(reg:CC FLAGS_REG) (const_int 0)])

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-22  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22  6:01 [gcc r14-5747] Support cbranchm for Vector HI/QImode hongtao Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).