]>
Commit | Line | Data |
---|---|---|
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 | ||
5 | int bar (int, int, int, int, int); | |
6 | ||
7 | MICROMIPS int | |
8 | foo (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" } } */ |