Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/simplify-vdiv.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64 -O3" } */
3
4 #include "riscv_vector.h"
5
6 #define VDIV_WITH_LMUL(LMUL, DTYPE) \
7 vint##DTYPE##m##LMUL##_t \
8 shortcut_for_riscv_vdiv_case_##LMUL##_##DTYPE \
9 (vint##DTYPE##m##LMUL##_t v1, \
10 size_t vl) \
11 { \
12 return __riscv_vdiv_vx_i##DTYPE##m##LMUL (v1, -1, vl); \
13 }
14
15 VDIV_WITH_LMUL (1, 16)
16 VDIV_WITH_LMUL (1, 32)
17
18 /* { dg-final { scan-assembler-times {vrsub\.vi} 2 } } */