From: Wilco Dijkstra Date: Mon, 17 Feb 2020 19:09:40 +0000 (+0000) Subject: [AArch64] Fix PR93565 testcase for ILP32. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc0f8df124f6ee12c82c5a6c1335868a15bcaecb;p=gcc.git [AArch64] Fix PR93565 testcase for ILP32. Fix PR93565 testcase for ILP32. testsuite/ * gcc.target/aarch64/pr93565.c: Fix test for ilp32. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 12390746bd5..1b6c566ac84 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-02-17 Wilco Dijkstra + + * gcc.target/aarch64/pr93565.c: Fix test for ilp32. + 2020-02-17 Will Schmidt * gcc.target/powerpc/fold-vec-extract-longlong.p8.c: Correct diff --git a/gcc/testsuite/gcc.target/aarch64/pr93565.c b/gcc/testsuite/gcc.target/aarch64/pr93565.c index 7200f80d1bb..fb64f5c5476 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr93565.c +++ b/gcc/testsuite/gcc.target/aarch64/pr93565.c @@ -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) {