]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/pr90838-2.c: Replace long with long long
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 17 Mar 2025 22:02:35 +0000 (15:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 17 Mar 2025 22:14:26 +0000 (15:14 -0700)
Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with
long long for ILP32 targets.

* gcc.dg/pr90838-2.c (ctz4): Replace long with long long.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/testsuite/gcc.dg/pr90838-2.c

index 83790694104141b996ae441416f1829bf53bb36d..a38799866fa88d4003b7c51e4d88509bed49bd7a 100644 (file)
@@ -26,9 +26,9 @@ static const char table[128] = {
     57, 58, 59, 60, 61, 62, 63, 64
 };
 
-int ctz4 (unsigned long x)
+int ctz4 (unsigned long long x)
 {
-  unsigned long lsb = x & -x;
+  unsigned long long lsb = x & -x;
   return table[(lsb * magic) >> 58];
 }