diff mbox

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

Message ID e6fc66b4-a89f-ee87-c6bf-45ddabe4eb0b@linux.vnet.ibm.com
State New
Headers show

Commit Message

Bill Schmidt Jan. 18, 2017, 10:40 p.m. UTC
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.
diff mbox

Patch

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