]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ad PR122212: Fix test case for 16-bit int targets.
authorGeorg-Johann Lay <avr@gjlay.de>
Sun, 19 Oct 2025 14:39:32 +0000 (16:39 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Sun, 19 Oct 2025 14:48:34 +0000 (16:48 +0200)
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

index 01a66313bbb81b9898de813eaf8bcd60161665ff..92689d28c8158dcf896818a739e013d7f1ce9aa9 100644 (file)
@@ -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;
 }