powerpc: Fix vsx_splat_v4si_di breakage on Power8.
commita7dce7626a6d5247d7dda48fa36d3cdc258aae84
authorDavid Edelsohn <dje.gcc@gmail.com>
Mon, 8 Nov 2021 16:46:47 +0000 (8 11:46 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Mon, 8 Nov 2021 16:46:47 +0000 (8 11:46 -0500)
tree62c635a018b48eba99cc0795f343f022aed1e696
parentd626fe77cdc40de0ae1651c8b94090eea73a719f
powerpc: Fix vsx_splat_v4si_di breakage on Power8.

The vsx_splat_v4si_di pattern uses a Power8 and a Power9 instruction.
The final condition of TARGET_DIRECT_MODE_64BIT implicitly requires Power8.
The "we" constraint requires Power9, but also requires 64 bit. Because
the DImode pattern already requires 64 bit mode, this isn't horrible,
but it would be best to remove all uses of "we" constraint.  The
mtvsrws instruction itself does not require 64 bit mode.

This patch reverts the previous change to fix the breakage.

gcc/ChangeLog:

* config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
constraint to "we".
gcc/config/rs6000/vsx.md