public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] rs6000: Fix p8_mtvsrd_df's insn type
@ 2020-11-19  6:54 Kewen.Lin
  2020-11-19 18:57 ` David Edelsohn
  0 siblings, 1 reply; 2+ messages in thread
From: Kewen.Lin @ 2020-11-19  6:54 UTC (permalink / raw)
  To: GCC Patches; +Cc: Segher Boessenkool, David Edelsohn, Bill Schmidt, pthaugen

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

Hi,

The insn type of p8_mtvsrd_df looks missed to be updated
with mtvsr.  Here I supposed mtvsrd's all usages should
be with the same insn type.

This patch is to fix its current insn type mfvsr by mtvsr.

Is it ok for trunk?

BR,
Kewen
-----
gcc/ChangeLog:

	* config/rs6000/rs6000.md (p8_mtvsrd_df): Fix insn type.

[-- Attachment #2: mtvsr.diff --]
[-- Type: text/plain, Size: 455 bytes --]

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 5e5ad9f7c3d..7de31cab80b 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -8761,7 +8761,7 @@
 		   UNSPEC_P8V_MTVSRD))]
   "TARGET_POWERPC64 && TARGET_DIRECT_MOVE"
   "mtvsrd %x0,%1"
-  [(set_attr "type" "mfvsr")])
+  [(set_attr "type" "mtvsr")])
 
 (define_insn "p8_xxpermdi_<mode>"
   [(set (match_operand:FMOVE128_GPR 0 "register_operand" "=wa")

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

* Re: [PATCH] rs6000: Fix p8_mtvsrd_df's insn type
  2020-11-19  6:54 [PATCH] rs6000: Fix p8_mtvsrd_df's insn type Kewen.Lin
@ 2020-11-19 18:57 ` David Edelsohn
  0 siblings, 0 replies; 2+ messages in thread
From: David Edelsohn @ 2020-11-19 18:57 UTC (permalink / raw)
  To: Kewen.Lin; +Cc: GCC Patches, Segher Boessenkool, Bill Schmidt, pthaugen

On Thu, Nov 19, 2020 at 1:54 AM Kewen.Lin <linkw@linux.ibm.com> wrote:
>
> Hi,
>
> The insn type of p8_mtvsrd_df looks missed to be updated
> with mtvsr.  Here I supposed mtvsrd's all usages should
> be with the same insn type.
>
> This patch is to fix its current insn type mfvsr by mtvsr.
>
> Is it ok for trunk?
>
> BR,
> Kewen
> -----
> gcc/ChangeLog:
>
>         * config/rs6000/rs6000.md (p8_mtvsrd_df): Fix insn type.

Good that you noticed it. Okay for trunk.

Thanks, David

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

end of thread, other threads:[~2020-11-19 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19  6:54 [PATCH] rs6000: Fix p8_mtvsrd_df's insn type Kewen.Lin
2020-11-19 18:57 ` David Edelsohn

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