]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/mips/umips-save-restore-1.c
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);
8 foo (int n
, int a
, int b
, int c
, int d
)
12 i
= bar (n
, a
, b
, c
, d
);
13 j
= bar (n
, a
, b
, c
, d
);
17 /* { dg-final { scan-assembler "\tswm\t\\\$16-\\\$2(0|1),\\\$31" } } */
18 /* { dg-final { scan-assembler "\tlwm\t\\\$16-\\\$2(0|1),\\\$31" } } */