public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6445] moxie: fix memory constraints
@ 2023-03-03 13:51 Anthony Green
0 siblings, 0 replies; only message in thread
From: Anthony Green @ 2023-03-03 13:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:fe4f3bbe9a1ad3da9df7a4693e0b5ff64e974aa1
commit r13-6445-gfe4f3bbe9a1ad3da9df7a4693e0b5ff64e974aa1
Author: Anthony Green <green@moxielogic.com>
Date: Fri Mar 3 08:46:10 2023 -0500
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.
Diff:
---
gcc/config/moxie/constraints.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-03 13:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03 13:51 [gcc r13-6445] moxie: fix memory constraints Anthony Green
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).