Debian Codegraph @

gcc/testsuite/gcc.target/mips/umips-save-restore-1.c

raw
1 /* Check that we can use the swm/lwm instructions. */
2 /* { dg-options "-mabi=32 (-mmicromips)" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4
5 int bar (int, int, int, int, int);
6
7 MICROMIPS int
8 foo (int n, int a, int b, int c, int d)
9 {
10 int i, j, k, l;
11
12 i = bar (n, a, b, c, d);
13 j = bar (n, a, b, c, d);
14 k = bar (n, a, b, c, d);
15 l = bar (n, a, b, c, d);
16 return i + j + k + l;
17 }
18
19 /* { dg-final { scan-assembler "\tswm\t\\\$16-\\\$2(2|3),\\\$31" } } */
20 /* { dg-final { scan-assembler "\tlwm\t\\\$16-\\\$2(2|3),\\\$31" } } */