public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work083)] Make vsx_extract_<mode> use correct insn attributes.
@ 2022-03-24 21:31 Michael Meissner
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Meissner @ 2022-03-24 21:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8fdeee899b29052ba4c33eee2780803cb51e091d

commit 8fdeee899b29052ba4c33eee2780803cb51e091d
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Mar 24 17:30:38 2022 -0400

    Make vsx_extract_<mode> use correct insn attributes.
    
    In looking at PR target/99293, I noticed that the insn "type" attribute is
    incorrect for the vsx_extract_<mode> insns.  In particular:
    
        1)  Simple vector register move should be vecmove (alternative 1);
        2)  Xxpermdi should be vecperm (alternative 2); (and)
        3)  Mfvsrld should be mfvsr (alternative 4).
    
    This patch fixes those attributes.
    
    2022-03-24   Michael Meissner  <meissner@linux.ibm.com>
    
    gcc/
            PR target/99392
            * config/rs6000/rs6000.md (vsx_extract_<mode>): Use the correct
            insn type for the alternatives.

Diff:
---
 gcc/config/rs6000/vsx.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md
index ad722cff70f..2a23807c2dc 100644
--- a/gcc/config/rs6000/vsx.md
+++ b/gcc/config/rs6000/vsx.md
@@ -3451,7 +3451,7 @@
   else
     gcc_unreachable ();
 }
-  [(set_attr "type" "veclogical,mfvsr,mfvsr,vecperm")
+  [(set_attr "type" "vecmove,vecperm,mfvsr,mfvsr")
    (set_attr "isa" "*,*,p8v,p9v")])
 
 ;; Optimize extracting a single scalar element from memory.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/meissner/heads/work083)] Make vsx_extract_<mode> use correct insn attributes.
@ 2022-03-24 19:40 Michael Meissner
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Meissner @ 2022-03-24 19:40 UTC (permalink / raw)
  To: gcc-cvs

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

commit cba5bcdfb9016c02f3d9f516329339e9398405b2
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Mar 24 15:39:50 2022 -0400

    Make vsx_extract_<mode> use correct insn attributes.
    
    In looking at PR target/99293, I noticed that the insn "type" attribute is
    incorrect for the vsx_extract_<mode> insns.  In particular:
    
        1)  Simple vector register move should be vecsimple (alternative 1);
        2)  Xxpermdi should be vecperm (alternative 2); (and)
        3)  Mfvsrld should be mfvsr (alternative 4).
    
    This patch fixes those attributes.
    
    2022-03-24   Michael Meissner  <meissner@linux.ibm.com>
    
    gcc/
            PR target/99392
            * config/rs6000/rs6000.md (vsx_extract_<mode>): Use the correct
            insn type for the alternatives.

Diff:
---
 gcc/config/rs6000/vsx.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md
index ad722cff70f..c79d796a513 100644
--- a/gcc/config/rs6000/vsx.md
+++ b/gcc/config/rs6000/vsx.md
@@ -3451,7 +3451,7 @@
   else
     gcc_unreachable ();
 }
-  [(set_attr "type" "veclogical,mfvsr,mfvsr,vecperm")
+  [(set_attr "type" "vecsimple,vecperm,mfvsr,mfvsr")
    (set_attr "isa" "*,*,p8v,p9v")])
 
 ;; Optimize extracting a single scalar element from memory.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-24 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 21:31 [gcc(refs/users/meissner/heads/work083)] Make vsx_extract_<mode> use correct insn attributes Michael Meissner
  -- strict thread matches above, loose matches on Subject: below --
2022-03-24 19:40 Michael Meissner

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