Debian Codegraph @

gcc/testsuite/gcc.target/avr/torture/pr118591-1.c

raw
1 /* { dg-do run { target { ! avr_tiny } } } */
2 /* { dg-additional-options "-std=c99 -mlra" } */
3
4 __attribute__((noipa))
5 void func2 (long long a1, long long a2, long b)
6 {
7 static unsigned char count = 0;
8 if (b != count++)
9 __builtin_abort ();
10 }
11
12 int main (void)
13 {
14 for (long b = 0; b < 5; ++b)
15 {
16 __asm ("" ::: "r5", "r9", "r24", "r20", "r16", "r12", "r30");
17
18 func2 (0, 0, b);
19 }
20
21 return 0;
22 }