Re: [PATCH] Fix range test optimization (PR tree-optimization/63302)

2014-10-17 Thread Richard Biener
On Fri, 17 Oct 2014, Jakub Jelinek wrote: > Hi! > > This patch fixes PR63302 by using proper predicate to test if > an INTEGER_CST is a not power of 2. > While the issue has been originally reported for PA, the testcase > shows the same issue on x86_64 (just with __int128 instead of long long). >

[PATCH] Fix range test optimization (PR tree-optimization/63302)

2014-10-16 Thread Jakub Jelinek
Hi! This patch fixes PR63302 by using proper predicate to test if an INTEGER_CST is a not power of 2. While the issue has been originally reported for PA, the testcase shows the same issue on x86_64 (just with __int128 instead of long long). Bootstrapped/regtested on x86_64-linux and i686-linux o