]> gcc.gnu.org Git - gcc.git/commitdiff
moxie: fix memory constraints
authorAnthony Green <green@moxielogic.com>
Fri, 3 Mar 2023 13:46:10 +0000 (08:46 -0500)
committerAnthony Green <green@moxielogic.com>
Fri, 3 Mar 2023 13:50:52 +0000 (08:50 -0500)
Change define_constraint to define_memory_constraint where appropriate
to fix LRA for moxie.

gcc/ChangeLog:

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

gcc/config/moxie/constraints.md

index 16c64b28b59d2e4d6d4977a9fb68ec8a4897b50a..78e8e9813fdcedc299cf93fe6f83137e0c060417 100644 (file)
 ;; 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))
This page took 0.090184 seconds and 5 git commands to generate.