public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6717] i386: Robustify vec perm blend functions for TARGET_MMX_WITH_SSE
@ 2023-03-16 19:43 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2023-03-16 19:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:acff89c7d7b3af3553a4fb878b2fd767dd27d830

commit r13-6717-gacff89c7d7b3af3553a4fb878b2fd767dd27d830
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Thu Mar 16 20:41:55 2023 +0100

    i386: Robustify vec perm blend functions for TARGET_MMX_WITH_SSE
    
    8-byte modes should be processed only for TARGET_MMX_WITH_SSE.
    
    gcc/ChangeLog:
    
            * config/i386/i386-expand.cc (expand_vec_perm_pblendv):
            Handle 8-byte modes only with TARGET_MMX_WITH_SSE.
            (expand_vec_perm_2perm_pblendv): Ditto.

Diff:
---
 gcc/config/i386/i386-expand.cc | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc
index 1545d4365b7..c1300dc4e26 100644
--- a/gcc/config/i386/i386-expand.cc
+++ b/gcc/config/i386/i386-expand.cc
@@ -20288,9 +20288,10 @@ expand_vec_perm_pblendv (struct expand_vec_perm_d *d)
     ;
   else if (TARGET_AVX && (vmode == V4DFmode || vmode == V8SFmode))
     ;
-  else if (TARGET_SSE4_1 && (GET_MODE_SIZE (vmode) == 4
-			     || GET_MODE_SIZE (vmode) == 8
-			     || GET_MODE_SIZE (vmode) == 16))
+  else if (TARGET_SSE4_1
+	   && (GET_MODE_SIZE (vmode) == 16
+	       || (TARGET_MMX_WITH_SSE && GET_MODE_SIZE (vmode) == 8)
+	       || GET_MODE_SIZE (vmode) == 4))
     ;
   else
     return false;
@@ -21154,9 +21155,10 @@ expand_vec_perm_2perm_pblendv (struct expand_vec_perm_d *d, bool two_insn)
     ;
   else if (TARGET_AVX && (vmode == V4DFmode || vmode == V8SFmode))
     ;
-  else if (TARGET_SSE4_1 && (GET_MODE_SIZE (vmode) == 16
-			     || GET_MODE_SIZE (vmode) == 8
-			     || GET_MODE_SIZE (vmode) == 4))
+  else if (TARGET_SSE4_1
+	   && (GET_MODE_SIZE (vmode) == 16
+	       || (TARGET_MMX_WITH_SSE && GET_MODE_SIZE (vmode) == 8)
+	       || GET_MODE_SIZE (vmode) == 4))
     ;
   else
     return false;

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

only message in thread, other threads:[~2023-03-16 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16 19:43 [gcc r13-6717] i386: Robustify vec perm blend functions for TARGET_MMX_WITH_SSE Uros Bizjak

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).