Re: [PATCH][ARM] Adjust clz, rbit and rev patterns for -mrestrict-it

2014-08-05 Thread Richard Earnshaw
On 04/08/14 13:22, Kyrill Tkachov wrote: > Hi all, > > While working on another patch and looking at the rbit and clz patterns, > I noticed that in aarch32 the relevant patterns are not adjusted for > -mrestrict-it. > A program like: > int > foo (int a, int b) > { >if (a + 5 == b) > ret

[PATCH][ARM] Adjust clz, rbit and rev patterns for -mrestrict-it

2014-08-04 Thread Kyrill Tkachov
Hi all, While working on another patch and looking at the rbit and clz patterns, I noticed that in aarch32 the relevant patterns are not adjusted for -mrestrict-it. A program like: int foo (int a, int b) { if (a + 5 == b) return __builtin_ctz (a); return 1; } compiled with -march=arm