public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* MIPS pseudo-instruction expansion
@ 2006-05-22 10:25 Amirtharaj J
  0 siblings, 0 replies; only message in thread
From: Amirtharaj J @ 2006-05-22 10:25 UTC (permalink / raw)
  To: gcc-help

Experts,
I need some help in the following.

The MIPS pseudo-instruction

lw s5, (0xBE800008)

expands to real MIPS instruction with compiler version 2.95.3
   3C15BE80   ---> lui s5, %hi(32-bit address)
   8EB50008   ---> lw  s5, %lo(32-bit address)(s5)

with compiler 3.4.3 the same expands to something which I couldn't
decode. I get "AddrError" in this code, obviously.

   3C150000
   3C01BE80
   66B50001
   0015A83C
   02A1A82D

The compiler options used are

-O4  -Werror -G 1 -Wa,--trap -mfp64 -mips3 -mtune=r4000
-fno-merge-constants -fno-reorder-blocks -fno-strict-aliasing
-fno-zero-initialized-in-bss -Wp,-fsimplify-pathnames -Wall -Wno-main
-Wpointer-arith -Wstrict-prototypes   -Wformat -Wformat-ios  
-Wno-parentheses

Is this a bug in 3.4.3 version or am I missing something here ?

Thanks for your help.
Amir

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-05-22 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-22 10:25 MIPS pseudo-instruction expansion Amirtharaj J

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).