rs6000: Don't call movsi_from_sf in 32 bit mode.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 14 Jul 2020 19:31:23 +0000 (15:31 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 14 Jul 2020 19:32:44 +0000 (15:32 -0400)
commit0c78f438fafdc2f4b2fc3a4d385f814378e3d3f5
tree5dd194f0ed38cd464fbfe896260941231bc2a081
parent0257997968fc4b62547cdc2a5cf5e01777bd7ed7
rs6000: Don't call movsi_from_sf in 32 bit mode.

movsi_from_sf uses rldimi instruction, which will cause the compiler to ICE
in 32 bit mode.  This patch limits the recently added pattern and call to
TARGET_POWERPC64.

2020-07-14  David Edelsohn  <dje.gcc@gmail.com>

gcc/ChangeLog

* config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
condition.
* config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md