rs6000: Make lwa_operand use any_memory_operand
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 20 Jul 2019 17:34:06 +0000 (19:34 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 20 Jul 2019 17:34:06 +0000 (19:34 +0200)
commit45986ed939d2187a03b6f55721e51e363968f5be
treef027ff7802ce0093979508f6ba53cf980d041d08
parent5744faa9851c86d018f32de7363b1064d5348d26
rs6000: Make lwa_operand use any_memory_operand

Testcase from comex, see https://lwn.net/Articles/793932/ .

* config/rs6000/predicates.md (lwa_operand): Allow volatile memory.

gcc/testsuite/
* gcc.target/powerpc/volatile-mem.c: New testcase.

From-SVN: r273631
gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/volatile-mem.c [new file with mode: 0644]