The test case of PR12212 passed -1u for a value that has all
uint32_t bits set, which doesn't work for int < 32 bit.
Applied as obvious.
Johann
--
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;
}