From 099957dfc7cf14cb42ec96bac83c480ebbff04af Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Sun, 19 Oct 2025 16:39:32 +0200 Subject: [PATCH] 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. --- 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 01a66313bbb..92689d28c81 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; } -- 2.47.3