gcc/testsuite/gcc.target/arc/fma-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-skip-if "FPU not available" { arc700 || arc6xx } } */ |
| 3 | /* { dg-options "-s -std=gnu11 -O2 -frounding-math -mfpu=fpus_all" } */ |
| 4 | |
| 5 | const float a, b = 7.8539818525e01; |
| 6 | |
| 7 | /* Check if the fma operation is generated correctly. */ |
| 8 | |
| 9 | int foo (void) |
| 10 | { |
| 11 | return (float)3.0 * b + a; |
| 12 | } |
| 13 | /* { dg-final { scan-assembler "fsmadd" } } */ |