On Wed, May 05, 1999 at 06:20:41PM +0200, christophe leroy wrote:
> On a SA1100, the following prog last 13 seconds
> 
> when I use
>         ldr     r0,.L1
>         ldr     r1,.L2
>         eor     r0,r0,r3
>         eor     r1,r1,r3
> instead, it last 10 seconds.
> 
> Is that normal ? There should be no issue delay on ldr, shouldnt it ?
> 
>         ldr     r0,.L1
>         eor     r0,r0,r3
>         ldr     r1,.L2
>         eor     r1,r1,r3

Yes, this is normal; LDRs have a 1 cycle delay if the register is used
immediately.  Last I heard; GCC did not reorder instructions to take
advantage of this.

-- 
Matthew Wilcox <[EMAIL PROTECTED]>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to