gcc/testsuite/gcc.target/nvptx/recip-1.c
raw| 1 | /* { dg-do assemble } */ |
| 2 | /* { dg-options "-O2 -save-temps" } */ |
| 3 | |
| 4 | double |
| 5 | foo (double x) |
| 6 | { |
| 7 | return 1.0 / x; |
| 8 | } |
| 9 | |
| 10 | float |
| 11 | foof (float x) |
| 12 | { |
| 13 | return 1.0f / x; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler-times "rcp.rn.f64" 1 } } */ |
| 17 | /* { dg-final { scan-assembler-times "rcp.rn.f32" 1 } } */ |
| 18 |