[COMMITTED][AArch64] Fix PR93565 testcase for ILP32.

Wilco Dijkstra Wilco.Dijkstra@arm.com
Mon Feb 17 19:18:00 GMT 2020


Fix PR93565 testcase for ILP32.

Committed as obvious.

testsuite/
        * gcc.target/aarch64/pr93565.c: Fix test for ilp32.

--
diff --git a/gcc/testsuite/gcc.target/aarch64/pr93565.c b/gcc/testsuite/gcc.target/aarch64/pr93565.c
index 7200f80..fb64f5c 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)
     {



More information about the Gcc-patches mailing list