[4/4] rs6000: Make offsettable_mem_operand use any_memory_operand

Message ID 8d3588c59f810b7ff95aedabcd4ec6e8e6e82b2d.1563642475.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Improve volatile memory handling
Related show

Commit Message

Segher Boessenkool July 20, 2019, 5:19 p.m.
2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>

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

---
 gcc/config/rs6000/predicates.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.8.3.1

Patch

diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md
index 7c451df..5a2d2d3 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -716,7 +716,7 @@  (define_predicate "any_memory_operand"
 
 ;; Return 1 if the operand is an offsettable memory operand.
 (define_predicate "offsettable_mem_operand"
-  (and (match_operand 0 "memory_operand")
+  (and (match_operand 0 "any_memory_operand")
        (match_test "offsettable_nonstrict_memref_p (op)")))
 
 ;; Return 1 if the operand is a simple offsettable memory operand