https://gcc.gnu.org/g:099957dfc7cf14cb42ec96bac83c480ebbff04af

commit r16-4492-g099957dfc7cf14cb42ec96bac83c480ebbff04af
Author: Georg-Johann Lay <[email protected]>
Date:   Sun Oct 19 16:39:32 2025 +0200

    ad PR122212: Fix test case for 16-bit int targets.
    
            PR testsuite/122212
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/torture/pr122212.c: Pass 0xffffffff instead of -1u
            for all bits set in uint32_t.

Diff:
---
 gcc/testsuite/gcc.dg/torture/pr122212.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/torture/pr122212.c 
b/gcc/testsuite/gcc.dg/torture/pr122212.c
index 01a66313bbb8..92689d28c815 100644
--- a/gcc/testsuite/gcc.dg/torture/pr122212.c
+++ b/gcc/testsuite/gcc.dg/torture/pr122212.c
@@ -22,7 +22,7 @@ int main()
 {
   if (ZSTD_countLeadingZeros32_fallback (0) != 31)
     __builtin_abort ();
-  if (ZSTD_countLeadingZeros32_fallback (-1U) != 0)
+  if (ZSTD_countLeadingZeros32_fallback (0xffffffff) != 0)
     __builtin_abort ();
   return 0;
 }

Reply via email to