AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / bitint-52.c
blobd2896da2f9a9375eed97161a8fb27dd23dcad2a6
1 /* PR middle-end/113574 */
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" } { "" } } */
7 unsigned _BitInt(1) a;
8 unsigned _BitInt(8) b;
10 void
11 foo (unsigned _BitInt(16) x)
13 a += (x << 2) | b;
16 int
17 main ()
19 foo (0xfef1uwb);
20 if (a)
21 __builtin_abort ();
22 return 0;