[AArch64] Fix PR93565 testcase for ILP32.

Fix PR93565 testcase for ILP32.

testsuite/
	* gcc.target/aarch64/pr93565.c: Fix test for ilp32.
This commit is contained in:
Wilco Dijkstra 2020-02-17 19:09:40 +00:00
parent c5e1c1d3ab
commit bc0f8df124
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2020-02-17 Wilco Dijkstra <wdijkstr@arm.com>
* gcc.target/aarch64/pr93565.c: Fix test for ilp32.
2020-02-17 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/fold-vec-extract-longlong.p8.c: Correct

View file

@ -14,13 +14,13 @@ static const char table[64] = {
9, 30, 45, 41, 8, 40, 7, 6,
};
static inline int ctz1 (unsigned long b)
static inline int ctz1 (unsigned long long b)
{
unsigned long lsb = b & -b;
unsigned long long lsb = b & -b;
return table[(lsb * magic) >> 58];
}
void f (unsigned long x, int *p)
void f (unsigned long long x, int *p)
{
if (x != 0)
{