| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv32gcv_zvfh -mabi=ilp32d -mrvv-vector-bits=scalable -fdump-tree-optimized-details" } */ |
| 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} 3 } } */ |
| 10 |
/* { dg-final { scan-assembler-times {\tvfsub\.vf} 3 } } */ |
| 11 |
/* { dg-final { scan-assembler-times {\tvfrsub\.vf} 6 } } */ |
| 12 |
/* { dg-final { scan-tree-dump-times "\.COND_LEN_SUB" 12 "optimized" } } */ |
| 13 |
|
| 14 |
/* Do not expect vfrsub for now, because we do not properly |
| 15 |
handle vop.vx and vfop.vf yet. */ |
| 16 |
/* { dg-final { scan-assembler-times {\tvfrsub\.vv} 0 } } */ |