Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/intrisinc-vrgatherei16.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv_zvfh -mabi=lp64 -O3" } */
3
4 #include "riscv_vector.h"
5
6 typedef _Float16 float16_t;
7
8 vfloat16mf4_t test_vrgatherei16_vv_f16mf4(vfloat16mf4_t op1, vuint16mf4_t op2,
9 size_t vl) {
10 return __riscv_vrgatherei16_vv_f16mf4(op1, op2, vl);
11 }
12
13 vfloat16m8_t test_vrgatherei16_vv_f16m8(vfloat16m8_t op1, vuint16m8_t op2,
14 size_t vl) {
15 return __riscv_vrgatherei16_vv_f16m8(op1, op2, vl);
16 }
17
18 vfloat16mf4_t test_vrgatherei16_vv_f16mf4_m(vbool64_t mask, vfloat16mf4_t op1,
19 vuint16mf4_t op2, size_t vl) {
20 return __riscv_vrgatherei16_vv_f16mf4_m(mask, op1, op2, vl);
21 }
22
23 vfloat16m8_t test_vrgatherei16_vv_f16m8_m(vbool2_t mask, vfloat16m8_t op1,
24 vuint16m8_t op2, size_t vl) {
25 return __riscv_vrgatherei16_vv_f16m8_m(mask, op1, op2, vl);
26 }
27
28 /* { dg-final { scan-assembler-times {vrgatherei16.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 4 } } */