[3/4] rs6000: Make input_operand use any_memory_operand

Message ID e2682c73d736d67c564de6cca7ad67c9236cd833.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 (input_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 23d626b..7c451df 100644
--- a/gcc/config/rs6000/predicates.md
+++ b/gcc/config/rs6000/predicates.md
@@ -1031,7 +1031,7 @@  (define_predicate "input_operand"
 	       const_double,const_wide_int,const_vector,const_int")
 {
   /* Memory is always valid.  */
-  if (memory_operand (op, mode))
+  if (any_memory_operand (op, mode))
     return 1;
 
   /* For floating-point, easy constants are valid.  */