How do I get pc-relative constant loads?
Andreas Schwab
schwab@suse.de
Tue Mar 26 02:52:00 GMT 2002
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."
More information about the Gcc
mailing list