public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Fred Cook" <fcook377@hotmail.com>
To: gcc@gcc.gnu.org
Cc: Ulrich.Weigand@de.ibm.com
Subject: Different addressing modes?
Date: Wed, 21 May 2003 16:32:00 -0000	[thread overview]
Message-ID: <Sea1-F579yOh58ab4uF000127c5@hotmail.com> (raw)

I am still trying to get addressing modes correctly in my port. Basically my 
architecture has the following addressing modes:

  1) absolute
  2) register indirect
  3) register + offset
  4) register + register

I want to specify in my define_insn for "call" that 1+2 are allowed and in 
my define_insn for "movsi" that 2, 3, and 4 are allowed for loads and 2 and 
3 for stores.

Which macros should I define?

What should I accept in GO_IF_LEGITIMATE? All four?

Which constraint letters should I introduce? Four letters for the four 
modes? Which letters are free to use?

How to specify extra constraint in the define_insn pattern? Something 
like...

(define_insn "movsi"
        [(set (match_operand:SI 0 "nonimmediate_operand" "=r,S")
              (match_operand:SI 1 "general_operand" "L,r"))]
        ""
        "@
          ld %1 -> %0
          st %0 %1"
)

Where S accepts a store address and L accepts a load address. Or should it 
be mS and mL? Or Sm or Lm?

Thanks,
Fred

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

             reply	other threads:[~2003-05-21 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-21 16:32 Fred Cook [this message]
2003-05-21 16:48 ` Peter Barada
2003-05-21 22:11 Ulrich Weigand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Sea1-F579yOh58ab4uF000127c5@hotmail.com \
    --to=fcook377@hotmail.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).