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 <wschm...@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")