Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/tuple-18.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_vint64m4x2_t (void *base, void *out)
8 {
9 vint64m4x2_t v = *(vint64m4x2_t*)base;
10 *(vint64m4x2_t*)out = v;
11 }
12
13 void
14 f_vuint64m4x2_t (void *base, void *out)
15 {
16 vuint64m4x2_t v = *(vuint64m4x2_t*)base;
17 *(vuint64m4x2_t*)out = v;
18 }
19
20 /* { dg-final { scan-assembler-not {srai} } } */
21 /* { dg-final { scan-assembler {slli} } } */
22 /* { dg-final { scan-assembler-times {vl4re64\.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 } } */