gcc/testsuite/gcc.target/arc/trsub.c
raw| 1 | /* Tests if we generate rsub instructions when compiling using |
| 2 | floating point assist instructions. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-skip-if "" { ! { clmcpu } } } */ |
| 5 | /* { dg-options "-mfpu=fpuda -mcpu=arcem" } */ |
| 6 | |
| 7 | double foo (double a) |
| 8 | { |
| 9 | return ((double) 0.12 - a); |
| 10 | } |
| 11 | /* { dg-final { scan-assembler-not "drsub.*" } } */ |