https://gcc.gnu.org/g:456f5ef81f0c6de630a60c26341082fffd48f241

commit r15-8240-g456f5ef81f0c6de630a60c26341082fffd48f241
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Mon Mar 17 15:02:35 2025 -0700

    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 <hjl.to...@gmail.com>

Diff:
---
 gcc/testsuite/gcc.dg/pr90838-2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/pr90838-2.c b/gcc/testsuite/gcc.dg/pr90838-2.c
index 837906941041..a38799866fa8 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];
 }

Reply via email to