This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: LO_SUM memrefs offsettable ?


Richard Henderson writes:

 > Hmm.. come to think of it, I'm not sure most sparc assemblers
 > would do the right thing with 
 > 
 > 	add	%g1, %lo(foo)+4000, %g1
 > 
 > Ack.  I now see that there's no relocation to describe it
 > either.  :-(  
 > 
 > Sigh.  Modify the sparc entry to 22/10/0.

So the winner is the PA, by a mile.

TARGET  BITS_PER_HIGH  BITS_PER_LO_SUM   MAX_LO_SUM_OFFSET

c4x                16               16                   0
i860               16               16                   0
m32r               16?              16?                  0
m88k               16               16                   0
mips               16               16                   0  
pa                 21               14              +-8192*
rs6000             16               16                   0
sparc              22               10                   0
v850               16               16                   0 

[* I think to be safe that this would have to be 1024 bytes smaller]

I wonder if we should collect information like this somewhere
to aid folks who are starting new ports or new optimisations?
This could be a nice little project for someone ;-)

Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]