Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=rv32gcv_zvfh -mabi=ilp32d" } */
3
4 #include "riscv_vector.h"
5
6 void
7 f_vfloat16m2x2_t (void *base, void *out)
8 {
9 vfloat16m2x2_t v = *(vfloat16m2x2_t*)base;
10 *(vfloat16m2x2_t*)out = v;
11 }
12
13 void
14 f_vfloat16m2x3_t (void *base, void *out)
15 {
16 vfloat16m2x3_t v = *(vfloat16m2x3_t*)base;
17 *(vfloat16m2x3_t*)out = v;
18 }
19
20 void
21 f_vfloat16m2x4_t (void *base, void *out)
22 {
23 vfloat16m2x4_t v = *(vfloat16m2x4_t*)base;
24 *(vfloat16m2x4_t*)out = v;
25 }
26
27 /* { dg-final { scan-assembler-not {srai} } } */
28 /* { dg-final { scan-assembler {slli} } } */
29 /* { dg-final { scan-assembler-times {vl2re16\.v\tv[0-9]+,0\([a-x0-9]+\)} 9 } } */
30 /* { dg-final { scan-assembler-times {vs2r\.v\tv[0-9]+,0\([a-x0-9]+\)} 9 } } */