[rs6000] Use gen_int_mode in ieee_128bit_negative_zero
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 28 Dec 2017 20:42:43 +0000 (20:42 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 28 Dec 2017 20:42:43 +0000 (20:42 +0000)
commitec8a1b8d931ccdfa87d712028226a03ff17f6cef
tree7817dbb1de82a324fd7024ff21ee7c158bedbbcc
parentaf2e447568c939acf8c55eea529b2ac85c5753a7
[rs6000] Use gen_int_mode in ieee_128bit_negative_zero

Previously we'd generate a non-canonical zero-extended CONST_INT
instead of a sign-extended one, which tripped the assert for
canonical CONST_INTs after a later patch.

2017-12-28  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* config/powerpcspe/powerpcspe.md (ieee_128bit_negative_zero): Use
gen_int_mode rather than GEN_INT.
* config/rs6000/rs6000.md (ieee_128bit_negative_zero): Likewise.

From-SVN: r256024
gcc/ChangeLog
gcc/config/powerpcspe/powerpcspe.md
gcc/config/rs6000/rs6000.md