gcc/testsuite/gcc.target/microblaze/isa/nofloat.c
raw| 1 | /* { dg-options "-O3 -mcpu=v10.0 -msoft-float" } */ |
| 2 | |
| 3 | volatile float f1, f2, f3; |
| 4 | |
| 5 | void float_func () |
| 6 | { |
| 7 | /* { dg-final { scan-assembler-not "fmul" } } */ |
| 8 | f1 = f2 * f3; |
| 9 | |
| 10 | /* { dg-final { scan-assembler-not "fadd" } } */ |
| 11 | f1 = f2 + f3; |
| 12 | |
| 13 | /* { dg-final { scan-assembler-not "frsub" } } */ |
| 14 | f1 = f2 - f3; |
| 15 | |
| 16 | /* { dg-final { scan-assembler-not "fdiv" } } */ |
| 17 | f1 = f2 / f3; |
| 18 | |
| 19 | } |