https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80382
--- Comment #11 from Segher Boessenkool <segher at gcc dot gnu.org> --- Fixed on trunk (I forgot the marker in the checkin comment, oops): 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. 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.