Debian Codegraph @

gcc/testsuite/gcc.target/i386/apx-push2pop2_interrupt-1.c

raw
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mapx-features=egpr,push2pop2 -mgeneral-regs-only -mno-cld -mno-push-args -maccumulate-outgoing-args" } */
3
4 extern void foo (void *) __attribute__ ((interrupt));
5
6 extern int bar (int);
7
8 void foo (void *frame)
9 {
10 int a,b,c,d,e,f,i;
11 a = bar (5);
12 b = bar (a);
13 c = bar (b);
14 d = bar (c);
15 e = bar (d);
16 f = bar (e);
17 for (i = 1; i < 10; i++)
18 {
19 a += bar (a + i) + bar (b + i) +
20 bar (c + i) + bar (d + i) +
21 bar (e + i) + bar (f + i);
22 }
23 }
24
25 /* { dg-final { scan-assembler-times "pushq" 31 } } */
26 /* { dg-final { scan-assembler-times "popq" 31 } } */
27 /* { dg-final { scan-assembler-not "push2\[\\t \]+" } } */
28 /* { dg-final { scan-assembler-not "pop2\[\\t \]+" } } */