rs6000: Enforce quad_address_p in TImode atomic_load/store (PR80382)
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 12 Apr 2017 08:31:40 +0000 (10:31 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 12 Apr 2017 08:31:40 +0000 (10:31 +0200)
commitba6bf284a5a10ba6eba18135c6df05c479aac5ca
treefd2bdcde16172d9d03e5905abff5869393599a46
parent350792ffaed9b3506582b471bf133459d7ea64ab
rs6000: Enforce quad_address_p in TImode atomic_load/store (PR80382)

Whatever expand expands to should be valid instructions.  The defined
instructions here have a quad_memory_operand predicate, which boils
down to quad_address_p on the address, so let's test for that instead
of only disallowing indexed addresses.

* config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
for quad_address_p for TImode, instead of just not indexed_address.

From-SVN: r246867
gcc/ChangeLog
gcc/config/rs6000/sync.md