moxie: use define_memory_constraint

Message ID 87r0u6szx7.fsf@moxielogic.com
State Repeat Merge
Headers
Series moxie: use define_memory_constraint |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Anthony Green March 3, 2023, 1:54 p.m. UTC
  Committed as obviously correct.  Required to make LRA for moxie work.

    gcc/ChangeLog:
    
            * config/moxie/constraints.md (A, B, W): Change
            define_constraint to define_memory_constraint.
  

Patch

diff --git a/gcc/config/moxie/constraints.md b/gcc/config/moxie/constraints.md
index 16c64b28b59..78e8e9813fd 100644
--- a/gcc/config/moxie/constraints.md
+++ b/gcc/config/moxie/constraints.md
@@ -22,19 +22,19 @@ 
 ;; Constraints
 ;; -------------------------------------------------------------------------
 
-(define_constraint "A"
+(define_memory_constraint "A"
   "An absolute address."
   (and (match_code "mem")
        (ior (match_test "GET_CODE (XEXP (op, 0)) == SYMBOL_REF")
 	    (match_test "GET_CODE (XEXP (op, 0)) == LABEL_REF")
 	    (match_test "GET_CODE (XEXP (op, 0)) == CONST"))))
 
-(define_constraint "B"
+(define_memory_constraint "B"
   "An offset address."
   (and (match_code "mem")
        (match_test "moxie_offset_address_p (op)")))
 
-(define_constraint "W"
+(define_memory_constraint "W"
   "A register indirect memory operand."
   (and (match_code "mem")
        (match_test "REG_P (XEXP (op, 0))