| 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 "vsub-template.h" |
| 5 |
|
| 6 |
/* { dg-final { scan-assembler-times {\tvsub\.vv} 16 } } */ |
| 7 |
/* { dg-final { scan-assembler-times {\tvrsub\.vi} 16 } } */ |
| 8 |
|
| 9 |
/* { dg-final { scan-assembler-times {\tvfsub\.vv} 12 } } */ |
| 10 |
|
| 11 |
/* Do not expect vfrsub for now, because we do not properly |
| 12 |
handle vop.vx and vfop.vf yet. */ |
| 13 |
/* { dg-final { scan-assembler-times {\tvfrsub\.vv} 0 } } */ |