Re: [4.2] MIPS: missed optimization

2008-11-24 Thread Richard Sandiford
Manuel Lauss <[EMAIL PROTECTED]> writes: > On Sun, Nov 23, 2008 at 05:14:27PM +, Richard Sandiford wrote: >> Richard Sandiford <[EMAIL PROTECTED]> writes: >> > Manuel Lauss <[EMAIL PROTECTED]> writes: >> >> Admittedly my understanding of mips assembly is not yet very advanced, am >> >> I >> >>

Re: [4.2] MIPS: missed optimization

2008-11-24 Thread Manuel Lauss
Hello Richard, On Sun, Nov 23, 2008 at 05:14:27PM +, Richard Sandiford wrote: > Richard Sandiford <[EMAIL PROTECTED]> writes: > > Manuel Lauss <[EMAIL PROTECTED]> writes: > >> Admittedly my understanding of mips assembly is not yet very advanced, am I > >> missing something or is this a bug? >

Re: [4.2] MIPS: missed optimization

2008-11-23 Thread Richard Sandiford
Richard Sandiford <[EMAIL PROTECTED]> writes: > Manuel Lauss <[EMAIL PROTECTED]> writes: >> Admittedly my understanding of mips assembly is not yet very advanced, am I >> missing something or is this a bug? > > Well, it's a missed optimisation, certainly. Fortunately, > it's conceptually fairly ea

Re: [4.2] MIPS: missed optimization

2008-11-20 Thread Richard Sandiford
Manuel Lauss <[EMAIL PROTECTED]> writes: > Admittedly my understanding of mips assembly is not yet very advanced, am I > missing something or is this a bug? Well, it's a missed optimisation, certainly. Fortunately, it's conceptually fairly easy to fix. I'll have a go. Richard

[4.2] MIPS: missed optimization

2008-11-19 Thread Manuel Lauss
Hello, Please consider this little snippett of code: - 8< -- 8< -- #define AU1000_INTC0_INT_BASE 8 #define IC0_FALLINGCLR 0xb0400078 #define IC0_RISINGCLR 0xb040007c static inline void au_writel(unsigned long d, unsigned long a) { *(unsigned long *)(a) =