gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/vfsqrt-rv32gcv.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv32gcv_zvfh -mabi=ilp32d -mrvv-vector-bits=zvl -ffast-math" } */ |
| 3 | |
| 4 | #include "vfsqrt-template.h" |
| 5 | |
| 6 | /* We cannot link this without the Zvfh extension so define |
| 7 | it here instead of in the template directly (which is also |
| 8 | included by the run test that might need to be linked without |
| 9 | the extension). */ |
| 10 | TEST_TYPE (_Float16, f16) |
| 11 | |
| 12 | /* { dg-final { scan-assembler-times {\tvfsqrt\.v} 3 } } */ |