bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: XScale assembler 2.11.2 bug when using .rept & .endr psuedo-o ps


From: Nick Clifton
Subject: Re: XScale assembler 2.11.2 bug when using .rept & .endr psuedo-o ps
Date: 12 Oct 2001 15:36:16 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Hi George,

>       Enclosed is a test cse for the literals failing. I beleive 
> it is a limitation of the ARM LDR instruction the the offset must
> be within 12 bits.

That's correct.

> Is there a known work around? I could use multiple files.

It depends.  You are going to have to arrange to have the literal pool
placed closer to the instructions.  You could split the repeat in half
like this:

                .rept   512
                mov     r0,#N
                .endr

                b over_pool
                .ltorg
        over_pool:

                .rept   512
                mov     r0,#N
                .endr

This works, but of course you end up with a literal pool half way
through your set of mov r0,#N instructions, which you may not want.

Cheers
        Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]