Re: AND vs UXTB

2012-08-05 Thread Michael Hope
On 4 August 2012 00:53, Richard Earnshaw wrote: > On 03/08/12 13:49, Mans Rullgard wrote: >> I have noticed gcc has a preference for generating UXTB instructions >> when an AND with #255 would do the same thing. This is bad, because >> on A9 UXTB has two cycles latency compared to one cycle for A

Re: AND vs UXTB

2012-08-03 Thread Siarhei Siamashka
On Fri, Aug 3, 2012 at 3:53 PM, Richard Earnshaw wrote: > On 03/08/12 13:49, Mans Rullgard wrote: >> I have noticed gcc has a preference for generating UXTB instructions >> when an AND with #255 would do the same thing. This is bad, because >> on A9 UXTB has two cycles latency compared to one cyc

Re: AND vs UXTB

2012-08-03 Thread Mans Rullgard
On 3 August 2012 13:53, Richard Earnshaw wrote: > On 03/08/12 13:49, Mans Rullgard wrote: >> I have noticed gcc has a preference for generating UXTB instructions >> when an AND with #255 would do the same thing. This is bad, because >> on A9 UXTB has two cycles latency compared to one cycle for A

Re: AND vs UXTB

2012-08-03 Thread Richard Earnshaw
On 03/08/12 13:49, Mans Rullgard wrote: > I have noticed gcc has a preference for generating UXTB instructions > when an AND with #255 would do the same thing. This is bad, because > on A9 UXTB has two cycles latency compared to one cycle for AND. On > A8 both instructions have one cycle latency.