From: H.J. Lu Date: Mon, 17 Mar 2025 22:02:35 +0000 (-0700) Subject: gcc.dg/pr90838-2.c: Replace long with long long X-Git-Tag: basepoints/gcc-16~1313 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=456f5ef81f0c6de630a60c26341082fffd48f241;p=thirdparty%2Fgcc.git gcc.dg/pr90838-2.c: Replace long with long long 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 --- diff --git a/gcc/testsuite/gcc.dg/pr90838-2.c b/gcc/testsuite/gcc.dg/pr90838-2.c index 83790694104..a38799866fa 100644 --- a/gcc/testsuite/gcc.dg/pr90838-2.c +++ b/gcc/testsuite/gcc.dg/pr90838-2.c @@ -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]; }