[OBVIOUS][SPARC] Fix a couple of insn alternatives missing a type attribute

Jose E. Marchesi jose.marchesi@oracle.com
Thu Jun 1 08:50:00 GMT 2017


Installed the patch below to trunk as obvious.  It fixes a couple of
insn alternatives missing a type attribute in sparc.md.

Salud!

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 248773)
+++ gcc/ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+	* config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
+	type for movstouw.
+	(*sign_extendsidi2_insn): Likewise for movstosw.
+
 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
 
 	* dwarf2out.c (get_discr_value): Call the get_debug_type hook on
Index: gcc/config/sparc/sparc.md
===================================================================
--- gcc/config/sparc/sparc.md	(revision 248773)
+++ gcc/config/sparc/sparc.md	(working copy)
@@ -3014,7 +3014,7 @@
    srl\t%1, 0, %0
    lduw\t%1, %0
    movstouw\t%1, %0"
-  [(set_attr "type" "shift,load,*")
+  [(set_attr "type" "shift,load,vismv")
    (set_attr "cpu_feature" "*,*,vis3")
    (set_attr "v3pipe" "*,*,true")])
 
@@ -3329,7 +3329,7 @@
   sra\t%1, 0, %0
   ldsw\t%1, %0
   movstosw\t%1, %0"
-  [(set_attr "type" "shift,sload,*")
+  [(set_attr "type" "shift,sload,vismv")
    (set_attr "us3load_type" "*,3cycle,*")
    (set_attr "cpu_feature" "*,*,vis3")
    (set_attr "v3pipe" "*,*,true")])



More information about the Gcc-patches mailing list