public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4225] Guard 64/32-bit vector move patterns with ix86_hard_reg_move_ok.
@ 2022-11-22  4:50 hongtao Liu
  0 siblings, 0 replies; only message in thread
From: hongtao Liu @ 2022-11-22  4:50 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-4225-gd5fce9f6c15554a7d5bfbbcd1740200f1d32fa15
Author: liuhongt <hongtao.liu@intel.com>
Date:   Mon Nov 21 16:09:13 2022 +0800

    Guard 64/32-bit vector move patterns with ix86_hard_reg_move_ok.
    
    gcc/ChangeLog:
    
            * config/i386/mmx.md (*mov<mode>_internal): Add
            ix86_hard_reg_move_ok to condition.

Diff:
---
 gcc/config/i386/mmx.md | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md
index d5134cc351e..63aff287795 100644
--- a/gcc/config/i386/mmx.md
+++ b/gcc/config/i386/mmx.md
@@ -133,7 +133,8 @@
 	(match_operand:MMXMODE 1 "nonimm_or_0_operand"
     "rCo,rC,C,rm,rC,C  ,!y,m  ,?!y,?!y,r  ,C,v,m,v,v,r,*x,!y"))]
   "(TARGET_MMX || TARGET_MMX_WITH_SSE)
-   && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
+   && !(MEM_P (operands[0]) && MEM_P (operands[1]))
+   && ix86_hardreg_mov_ok (operands[0], operands[1])"
 {
   switch (get_attr_type (insn))
     {
@@ -286,7 +287,8 @@
     "=r ,m ,v,v,v,m,r,v")
 	(match_operand:V_32 1 "general_operand"
     "rmC,rC,C,v,m,v,v,r"))]
-  "!(MEM_P (operands[0]) && MEM_P (operands[1]))"
+  "!(MEM_P (operands[0]) && MEM_P (operands[1]))
+   && ix86_hardreg_mov_ok (operands[0], operands[1])"
 {
   switch (get_attr_type (insn))
     {

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

only message in thread, other threads:[~2022-11-22  4:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-22  4:50 [gcc r13-4225] Guard 64/32-bit vector move patterns with ix86_hard_reg_move_ok 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).