rs6000: Enforce quad_address_p in TImode atomic_load/store (PR80382)
authorSegher Boessenkool <segher@gcc.gnu.org>
Wed, 12 Apr 2017 08:32:56 +0000 (10:32 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 12 Apr 2017 08:32:56 +0000 (10:32 +0200)
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: r246868

gcc/ChangeLog

index ba4ae5f7b447daa3a48718c8b3fdac49db20d784..1458921cb449ee9b4a99372089071bbf08548544 100644 (file)
@@ -1,5 +1,6 @@
 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
 
+       PR target/80382
        * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
        for quad_address_p for TImode, instead of just not indexed_address.