Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/target_attribute_v_with_intrinsic-11.c

raw
1 /* Test that we do not have error when compile */
2 /* { dg-do compile } */
3 /* { dg-options "-march=rv64gc -mabi=lp64d -O3" } */
4
5 #include "riscv_vector.h"
6
7 vint8m1_t
8 __attribute__((target("arch=+zve32x")))
9 test_1 (vint8m1_t a, vint8m1_t b, size_t vl)
10 {
11 return __riscv_vadd_vv_i8m1 (a, b, vl);
12 }
13
14 vint16m1_t
15 __attribute__((target("arch=+zve32x")))
16 test_2 (vint16m1_t a, vint16m1_t b, size_t vl)
17 {
18 return __riscv_vadd_vv_i16m1 (a, b, vl);
19 }
20
21 vint32m1_t
22 __attribute__((target("arch=+zve32x")))
23 test_3 (vint32m1_t a, vint32m1_t b, size_t vl)
24 {
25 return __riscv_vadd_vv_i32m1 (a, b, vl);
26 }