Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/tuple-20.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_vfloat32m1x2_t (void *base, void *out)
8 {
9 vfloat32m1x2_t v = *(vfloat32m1x2_t*)base;
10 *(vfloat32m1x2_t*)out = v;
11 }
12
13 void
14 f_vfloat32m1x3_t (void *base, void *out)
15 {
16 vfloat32m1x3_t v = *(vfloat32m1x3_t*)base;
17 *(vfloat32m1x3_t*)out = v;
18 }
19
20 void
21 f_vfloat32m1x4_t (void *base, void *out)
22 {
23 vfloat32m1x4_t v = *(vfloat32m1x4_t*)base;
24 *(vfloat32m1x4_t*)out = v;
25 }
26
27 void
28 f_vfloat32m1x5_t (void *base, void *out)
29 {
30 vfloat32m1x5_t v = *(vfloat32m1x5_t*)base;
31 *(vfloat32m1x5_t*)out = v;
32 }
33
34 void
35 f_vfloat32m1x6_t (void *base, void *out)
36 {
37 vfloat32m1x6_t v = *(vfloat32m1x6_t*)base;
38 *(vfloat32m1x6_t*)out = v;
39 }
40
41 void
42 f_vfloat32m1x7_t (void *base, void *out)
43 {
44 vfloat32m1x7_t v = *(vfloat32m1x7_t*)base;
45 *(vfloat32m1x7_t*)out = v;
46 }
47
48 void
49 f_vfloat32m1x8_t (void *base, void *out)
50 {
51 vfloat32m1x8_t v = *(vfloat32m1x8_t*)base;
52 *(vfloat32m1x8_t*)out = v;
53 }
54
55 /* { dg-final { scan-assembler-not {srai} } } */
56 /* { dg-final { scan-assembler-not {slli} } } */
57 /* { dg-final { scan-assembler-times {vl1re32\.v\tv[0-9]+,0\([a-x0-9]+\)} 35 } } */
58 /* { dg-final { scan-assembler-times {vs1r\.v\tv[0-9]+,0\([a-x0-9]+\)} 35 } } */