[patch] MIPS gas problems with gcc's explicit relocs
Zack Weinberg
zack@codesourcery.com
Fri May 28 21:59:00 GMT 2004
More information about the Binutils mailing list
Fri May 28 21:59:00 GMT 2004
- Previous message (by thread): [patch] MIPS gas problems with gcc's explicit relocs
- Next message (by thread): [patch] MIPS gas problems with gcc's explicit relocs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes: > Maciej W. Rozycki wrote: > [snip] >> asm("dla\t%0,%1" : "=r" (result) : "m" (foo)); > [snip] >> lui $2,%highest(foo) >> daddiu $2,$2,%higher(foo) >> dsll $2,$2,16 >> daddiu $2,$2,%hi(foo) >> dsll $2,$2,16 >> #APP >> dla $2,%lo(foo)($2) >> #NO_APP > > IMHO this is broken in the compiler. It should either only provide the > sympol for %1, or handle the dla expansion correctly, preferably with > better optimization for superscalar processors (that is, a > lui - lui - daddiu - daddiu - dsll32 - daddu sequence). Huh? This is an asm statement; the compiler has no idea that it's a dla instruction. zw
- Previous message (by thread): [patch] MIPS gas problems with gcc's explicit relocs
- Next message (by thread): [patch] MIPS gas problems with gcc's explicit relocs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list