This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, rs6000, committed] Fix "type" attribute for vbpermq instruction


Hi,

Pat Haugen pointed out that the vbpermq instruction should preferably
have its "type" attribute set to vecperm, rather than vecsimple.  This
patch makes that change.

Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no
regressions, committed as obvious.

Thanks,
Bill


2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/altivec.md (altivec_vbpermq): Change "type"
	attribute from vecsimple to vecperm.
	(altivec_vbpermq2): Likewise.


Index: gcc/config/rs6000/altivec.md
===================================================================
--- gcc/config/rs6000/altivec.md	(revision 244585)
+++ gcc/config/rs6000/altivec.md	(working copy)
@@ -3680,7 +3680,7 @@
 		     UNSPEC_VBPERMQ))]
   "TARGET_P8_VECTOR"
   "vbpermq %0,%1,%2"
-  [(set_attr "type" "vecsimple")])
+  [(set_attr "type" "vecperm")])
 
 ; One of the vector API interfaces requires returning vector unsigned char.
 (define_insn "altivec_vbpermq2"
@@ -3690,7 +3690,7 @@
 		      UNSPEC_VBPERMQ))]
   "TARGET_P8_VECTOR"
   "vbpermq %0,%1,%2"
-  [(set_attr "type" "vecsimple")])
+  [(set_attr "type" "vecperm")])
 
 (define_insn "altivec_vbpermd"
   [(set (match_operand:V2DI 0 "register_operand" "=v")


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]