| 1 |
/* Check that we handle call-clobbered FPRs correctly. */ |
| 2 |
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ |
| 3 |
/* { dg-options "-mabi=32 -modd-spreg -mfpxx -ffixed-f0 -ffixed-f1 -ffixed-f2 -ffixed-f3 -ffixed-f4 -ffixed-f5 -ffixed-f6 -ffixed-f7 -ffixed-f8 -ffixed-f9 -ffixed-f10 -ffixed-f11 -ffixed-f12 -ffixed-f13 -ffixed-f14 -ffixed-f15 -ffixed-f16 -ffixed-f17 -ffixed-f18 -ffixed-f19 -ffixed-f20 -ffixed-f22 -ffixed-f24 -ffixed-f26 -ffixed-f28 -ffixed-f30" } */ |
| 4 |
|
| 5 |
void bar (void); |
| 6 |
float a; |
| 7 |
float |
| 8 |
foo () |
| 9 |
{ |
| 10 |
float b = a + 1.0f; |
| 11 |
bar(); |
| 12 |
return b; |
| 13 |
} |
| 14 |
/* { dg-final { scan-assembler-times "lwc1" 5 } } */ |
| 15 |
/* { dg-final { scan-assembler-times "swc1" 3 } } */ |
| 16 |
/* { dg-final { scan-assembler-not "mtc" } } */ |
| 17 |
/* { dg-final { scan-assembler-not "mfc" } } */ |
| 18 |
/* { dg-final { scan-assembler-not "mthc" } } */ |
| 19 |
/* { dg-final { scan-assembler-not "mfhc" } } */ |
| 20 |
/* { dg-final { scan-assembler-not "ldc1" } } */ |
| 21 |
/* { dg-final { scan-assembler-not "sdc1" } } */ |