gcc/testsuite/gcc.target/nvptx/float16-5.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ffast-math -misa=sm_53 -mptx=_" } */ |
| 3 | /* { dg-additional-options "-mexperimental" } */ |
| 4 | |
| 5 | _Float16 a; |
| 6 | _Float16 b; |
| 7 | _Float16 c; |
| 8 | _Float16 d; |
| 9 | |
| 10 | void foo() |
| 11 | { |
| 12 | a = (_Float16)(b*c) + d; |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler "fma.rn.f16" } } */ |