]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/mips/umips-save-restore-1.c
extend.texi: (micromips, nomicromips, nocompression): Document new function attributes.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / mips / umips-save-restore-1.c
CommitLineData
22c4c869
CM
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
5int bar (int, int, int, int, int);
6
7MICROMIPS int
8foo (int n, int a, int b, int c, int d)
9{
10 int i, j;
11
12 i = bar (n, a, b, c, d);
13 j = bar (n, a, b, c, d);
14 return i + j;
15}
16
17/* { dg-final { scan-assembler "\tswm\t\\\$16-\\\$2(0|1),\\\$31" } } */
18/* { dg-final { scan-assembler "\tlwm\t\\\$16-\\\$2(0|1),\\\$31" } } */