This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How do I get pc-relative constant loads?
- From: Andreas Schwab <schwab at suse dot de>
- To: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 26 Mar 2002 11:44:22 +0100
- Subject: Re: How do I get pc-relative constant loads?
- References: <200203252306.g2PN6M821996@hyper.wm.sps.mot.com>
Peter Barada <pbarada@mail.wm.sps.mot.com> writes:
|> So my questions are:
|>
|> 2) What's the proper syntax for pc-relative addressing(in the 68k)? is it:
|> fmove.d (.LC0:w,%pc),%fp0
|> to access .LC0 in the .text segment via pc-relative addressing?
This is correct for MIT syntax. For Motorola syntax you should emit this:
fmove.d .LC0.w(%pc),%fp0
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."