From: Georg-Johann Lay Date: Sun, 19 Oct 2025 14:39:32 +0000 (+0200) Subject: ad PR122212: Fix test case for 16-bit int targets. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=099957dfc7cf14cb42ec96bac83c480ebbff04af;p=thirdparty%2Fgcc.git 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 --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; }