powerpc: Fix vsx_splat_v4si in 32 bit mode
commit6b8152b96c114f038d2ef3fc753593c414b8cdb6
authorDavid Edelsohn <dje.gcc@gmail.com>
Sat, 6 Nov 2021 00:33:45 +0000 (5 20:33 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Sat, 6 Nov 2021 15:48:46 +0000 (6 11:48 -0400)
tree0ec35f4e32a7e933f8446943293edb06f704b91c
parent4856699eeb2809c50930bafe341a96470877195d
powerpc: Fix vsx_splat_v4si in 32 bit mode

Tamar's recent patch to teach CSE to perform vector extract exercises
VSX splat more frequently, which exposed a constraint error for the
vsx_splat patterns.  The pattern could be created for Power9, but
the "we constraint only provided alternatives in 64 bit mode. The
instructions are valid in 32 bit mode and SImode is allowed in VSX
registers.  This patch updates the constraints from "we" to "wa" to
allow the pattern and fix the failing testcases.

gcc/ChangeLog:

* config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
(vsx_splat_v4si_di): Change constraint to "wa".
gcc/config/rs6000/vsx.md