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]
Other format: [Raw text]

Re: arm/thumb bugs


Hi Adrian,

> Now this does indeed look strange - it expects the jump table to be
> the list of offsets you have mentioned in your mail. But in fact
> it's the same series of relative jumps as in the 32bit ARM case.

Hmm, not good! :-)

> I would probably have the time to do this adaption, but I have - as
> I said previously - no idea where to start.

Have a look in the arm.md file.  Find "casesi" and "casesi_internal".
These are the patterns used for switch table generation for the ARM.
You will porobably want to define similar patterns for the THUMB.

Cheers
        Nick


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