Debian Codegraph @

gcc/testsuite/gcc.target/mips/fuse-caller-save.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fipa-ra addressing=absolute" } */
3 /* At -O0 and -O1, the register allocator behaves more conservatively, and
4 the fipa-ra optimization doesnt' trigger. */
5 /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" } } */
6 /* Testing -fipa-ra optimization option. */
7
8 #define ATTRIBUTE NOCOMPRESSION
9 #include "fuse-caller-save.h"
10
11 /* Check that there are only 2 stack-saves: r31 in main and foo. */
12
13 /* Check that there only 2 sw/sd. */
14 /* { dg-final { scan-assembler-times "(?n)s\[wd\]\t\\\$.*,.*\\(\\\$sp\\)" 2 } } */
15
16 /* Check that the first caller-save register is unused. */
17 /* { dg-final { scan-assembler-not "\\\$16" } } */