aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/umips-save-restore-1.c
blob: ff1ea4b339a240c29d444add346c052a2f2c7ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Check that we can use the swm/lwm instructions.  */
/* { dg-options "-mabi=32 (-mmicromips)" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */

int bar (int, int, int, int, int);

MICROMIPS int
foo (int n, int a, int b, int c, int d)
{
  int i, j;

  i = bar (n, a, b, c, d);
  j = bar (n, a, b, c, d);
  return i + j;
}

/* { dg-final { scan-assembler "\tswm\t\\\$16-\\\$2(0|1),\\\$31" } } */
/* { dg-final { scan-assembler "\tlwm\t\\\$16-\\\$2(0|1),\\\$31" } } */