MIPS pseudo-instruction expansion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux