[PATCH] rs6000: Fix p8_mtvsrd_df's insn type

Kewen.Lin linkw@linux.ibm.com
Thu Nov 19 06:54:00 GMT 2020


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.
-------------- next part --------------
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")


More information about the Gcc-patches mailing list