Debian Codegraph @

gcc/testsuite/gcc.target/i386/no-callee-saved-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune-ctrl=^prologue_using_move,^epilogue_using_move -fomit-frame-pointer" } */
3
4 extern int bar (int) __attribute__ ((no_caller_saved_registers))
5 #ifndef __x86_64__
6 __attribute__ ((regparm(3)))
7 #endif
8 ;
9
10 __attribute__ ((no_callee_saved_registers))
11 void
12 foo (void *frame)
13 {
14 int a,b,c,d,e,f,i;
15 a = bar (5);
16 b = bar (a);
17 c = bar (b);
18 d = bar (c);
19 e = bar (d);
20 f = bar (e);
21 for (i = 1; i < 10; i++)
22 {
23 a += bar (a + i) + bar (b + i) +
24 bar (c + i) + bar (d + i) +
25 bar (e + i) + bar (f + i);
26 }
27 }
28
29 /* { dg-final { scan-assembler-not "push" } } */
30 /* { dg-final { scan-assembler-not "pop" } } */