Debian Codegraph @

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

raw
1 /* PR middle-end/117459 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
6
7 #if __BITINT_MAXWIDTH__ >= 255
8 _BitInt(255) b, c, d;
9
10 _BitInt(255)
11 foo ()
12 {
13 return __builtin_assoc_barrier (b + c) + d;
14 }
15 #endif
16
17 int
18 main ()
19 {
20 #if __BITINT_MAXWIDTH__ >= 255
21 b = 3162082328713384445049140446737468449630746270013462291267283007210433157591wb;
22 c = 12998515555477887328635550261966833804427562203752161174274777867442907371807wb;
23 d = 5016523343681809792116154509287659112784399275423992541459788346980443294044wb;
24 if (foo () != 21177121227873081565800845217991961366842707749189616007001849221633783823442wb)
25 __builtin_abort ();
26 #endif
27 }