This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000, committed] Fix "type" attribute for vbpermq instruction
- From: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Segher Boessenkool <segher at kernel dot crashing dot org>, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Wed, 18 Jan 2017 16:40:51 -0600
- Subject: [PATCH, rs6000, committed] Fix "type" attribute for vbpermq instruction
- Authentication-results: sourceware.org; auth=none
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")