]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/mips/umips-save-restore-3.c
extend.texi: (micromips, nomicromips, nocompression): Document new function attributes.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / mips / umips-save-restore-3.c
CommitLineData
22c4c869
CM
1/* Check that we can use the swm instruction to save $16, $17 and $31. */
2/* { dg-options "-mgp32 (-mmicromips)" } */
3/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
4
5void bar (void);
6
7MICROMIPS void
8foo (void)
9{
10 bar ();
11 asm volatile ("" ::: "$16", "$17");
12}
13/* { dg-final { scan-assembler "\tswm\t\\\$16-\\\$17,\\\$31" } } */
14/* { dg-final { scan-assembler "\tlwm\t\\\$16-\\\$17,\\\$31" } } */