Debian Codegraph @

gcc/testsuite/gcc.dg/torture/bitint-53.c

raw
1 /* PR libgcc/113604 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
6
7 #if __BITINT_MAXWIDTH__ >= 256
8 unsigned _BitInt (256) x;
9
10 void
11 foo (unsigned _BitInt (256) a, unsigned _BitInt (128) b)
12 {
13 x = a / b;
14 }
15 #endif
16
17 int
18 main ()
19 {
20 #if __BITINT_MAXWIDTH__ >= 256
21 foo (0xfffffffffffffffffffffc0000000000000000000004uwb, 0x7ffffffffffffffffffffffffffuwb);
22 if (x != 0x1fffffffffffffffffuwb)
23 __builtin_abort ();
24 #endif
25 return 0;
26 }