gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/abs-rv64gcv.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv64gcv_zvfh -mabi=lp64d -mrvv-vector-bits=zvl -ffast-math" } */ |
| 3 | |
| 4 | #include "abs-template.h" |
| 5 | |
| 6 | /* { dg-final { scan-assembler-times {\tvseti?vli\s+[a-z0-9,]+,ta,ma} 7 } } */ |
| 7 | /* { dg-final { scan-assembler-times {\tvrsub\.vi} 4 } } */ |
| 8 | /* { dg-final { scan-assembler-times {\tvmax\.vv\sv[0-9]+,v[0-9]+,v[0-9]+} 4 } } */ |
| 9 | /* { dg-final { scan-assembler-times {\tvfabs.v} 3 } } */ |