| 1 |
/* Check that we handle call-clobbered FPRs correctly. */ |
| 2 |
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */ |
| 3 |
/* { dg-options "isa>=2 -mabi=32 -mfpxx -mhard-float -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" } */ |
| 4 |
|
| 5 |
void bar (void); |
| 6 |
double a; |
| 7 |
double |
| 8 |
foo () |
| 9 |
{ |
| 10 |
double b = a + 1.0; |
| 11 |
bar(); |
| 12 |
return b; |
| 13 |
} |
| 14 |
/* { dg-final { scan-assembler-not "lwc1" } } */ |
| 15 |
/* { dg-final { scan-assembler-not "swc1" } } */ |
| 16 |
/* { dg-final { scan-assembler-times "sdc1" 2 } } */ |
| 17 |
/* { dg-final { scan-assembler-times "ldc1" 4 } } */ |
| 18 |
/* { dg-final { scan-assembler-not "mtc" } } */ |
| 19 |
/* { dg-final { scan-assembler-not "mfc" } } */ |
| 20 |
/* { dg-final { scan-assembler-not "mthc" } } */ |
| 21 |
/* { dg-final { scan-assembler-not "mfhc" } } */ |