Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr38534-5.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -mtune-ctrl=^prologue_using_move,^epilogue_using_move -mnoreturn-no-callee-saved-registers" } */
3
4 #define ARRAY_SIZE 256
5
6 extern int array[ARRAY_SIZE][ARRAY_SIZE][ARRAY_SIZE];
7 extern int value (int, int, int)
8 #ifndef __x86_64__
9 __attribute__ ((regparm(3)))
10 #endif
11 ;
12
13 void
14 __attribute__((noreturn))
15 no_return_to_caller (void)
16 {
17 unsigned i, j, k;
18 for (i = ARRAY_SIZE; i > 0; --i)
19 for (j = ARRAY_SIZE; j > 0; --j)
20 for (k = ARRAY_SIZE; k > 0; --k)
21 array[i - 1][j - 1][k - 1] = value (i, j, k);
22 while (1);
23 }
24
25 /* { dg-final { scan-assembler "push" } } */
26 /* { dg-final { scan-assembler-not "pop" } } */