Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/tuple-26.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=rv32gcv -mabi=ilp32d" } */
3
4 #include "riscv_vector.h"
5
6 void
7 f_vint8mf8x2_t (void *out)
8 {
9 vint8mf8x2_t v;
10 *(vint8mf8x2_t*)out = v;
11 }
12
13 void
14 f_vint8m1x2_t (void *out)
15 {
16 vint8m1x2_t v;
17 *(vint8m1x2_t*)out = v;
18 }
19
20 void
21 f_vfloat32mf2x8_t (void *base, void *out)
22 {
23 vfloat32mf2x8_t v;
24 *(vfloat32mf2x8_t*)out = v;
25 }
26
27 void
28 f_vfloat64m4x2_t (void *base, void *out)
29 {
30 vfloat64m4x2_t v;
31 *(vfloat64m4x2_t*)out = v;
32 }
33
34 /* { dg-final { scan-assembler-times {vmv.v.i\tv[0-9]+,\s*0} 4 } } */