Debian Codegraph @

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

raw
1 /* PR middle-end/117847 */
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__ >= 512
8 typedef unsigned _BitInt(512) B;
9
10 __attribute__((noipa)) B
11 foo (B a, int r)
12 {
13 B b = __builtin_stdc_rotate_left (a, r);
14 return b;
15 }
16 #endif
17
18 int
19 main ()
20 {
21 #if __BITINT_MAXWIDTH__ >= 512
22 B a = 0x4ad4fdecc8717d7c6f8b1afb82fdb742477ef2ab34057d1dcc79ba30c38a352dea3253c8c25126d98da02213ad54b90d2998f947941ea4b45e71c61dc1fe3192uwb;
23 B x = foo (a, 0);
24 if (x != a)
25 __builtin_abort ();
26 #endif
27 }