diff options
author | Anthony Green <green@moxielogic.com> | 2023-03-03 08:46:10 -0500 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2023-03-03 08:50:52 -0500 |
commit | fe4f3bbe9a1ad3da9df7a4693e0b5ff64e974aa1 (patch) | |
tree | c71b0ab462cb3cbd411bcf29e8109bfc87f2f8b9 /gcc/config/moxie | |
parent | 6703f490cd802650cf5a5a8ada6c5077316547dd (diff) | |
download | gcc-fe4f3bbe9a1ad3da9df7a4693e0b5ff64e974aa1.zip gcc-fe4f3bbe9a1ad3da9df7a4693e0b5ff64e974aa1.tar.gz gcc-fe4f3bbe9a1ad3da9df7a4693e0b5ff64e974aa1.tar.bz2 |
moxie: fix memory constraints
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.
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r-- | gcc/config/moxie/constraints.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/moxie/constraints.md b/gcc/config/moxie/constraints.md index 16c64b2..78e8e98 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)) |