Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/tuple-6.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_vint8m4x2_t (void *base, void *out)
8 {
9 vint8m4x2_t v = *(vint8m4x2_t*)base;
10 *(vint8m4x2_t*)out = v;
11 }
12
13 void
14 f_vuint8m4x2_t (void *base, void *out)
15 {
16 vuint8m4x2_t v = *(vuint8m4x2_t*)base;
17 *(vuint8m4x2_t*)out = v;
18 }
19
20 /* { dg-final { scan-assembler-not {srai} } } */
21 /* { dg-final { scan-assembler {slli} } } */
22 /* { dg-final { scan-assembler-times {vl4re8\.v\tv[0-9]+,0\([a-x0-9]+\)} 4 } } */
23 /* { dg-final { scan-assembler-times {vs4r\.v\tv[0-9]+,0\([a-x0-9]+\)} 4 } } */