Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/pr110119-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gczve32x -mabi=lp64d -mrvv-vector-bits=zvl" } */
3
4 #include <stdint-gcc.h>
5 #include "riscv_vector.h"
6
7 __attribute__ ((noipa)) vint32m1x3_t
8 foo1 (int32_t *in, int vl)
9 {
10 vint32m1x3_t v = __riscv_vlseg3e32_v_i32m1x3 (in, vl);
11 return v;
12 }
13
14 __attribute__ ((noipa)) void
15 foo2 (vint32m1x3_t a, int32_t *out, int vl)
16 {
17 __riscv_vsseg3e32_v_i32m1x3 (out, a, vl);
18 }
19
20 __attribute__ ((noipa)) vint32m1x3_t
21 foo3 (vint32m1x3_t a, int32_t *out, int32_t *in, int vl)
22 {
23 __riscv_vsseg3e32_v_i32m1x3 (out, a, vl);
24 vint32m1x3_t v = __riscv_vlseg3e32_v_i32m1x3 (in, vl);
25 return v;
26 }