Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / umips-save-restore-1.c
blobff1ea4b339a240c29d444add346c052a2f2c7ba6
1 /* Check that we can use the swm/lwm instructions. */
2 /* { dg-options "-mabi=32 (-mmicromips)" } */
3 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
5 int bar (int, int, int, int, int);
7 MICROMIPS int
8 foo (int n, int a, int b, int c, int d)
10 int i, j;
12 i = bar (n, a, b, c, d);
13 j = bar (n, a, b, c, d);
14 return i + j;
17 /* { dg-final { scan-assembler "\tswm\t\\\$16-\\\$2(0|1),\\\$31" } } */
18 /* { dg-final { scan-assembler "\tlwm\t\\\$16-\\\$2(0|1),\\\$31" } } */