Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/vsetvl/avl_single-9.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mrvv-vector-bits=scalable -march=rv32gcv -mabi=ilp32 -fno-schedule-insns -fno-schedule-insns2" } */
3
4 #include "riscv_vector.h"
5
6 void f (void * restrict in, void * restrict out, int l, int n, int m)
7 {
8 int vl = 32;
9 for (int i = 0; i < n; i++)
10 {
11 vint8mf8_t v1 = __riscv_vle8_v_i8mf8 (in + i + 1, vl);
12 __riscv_vse8_v_i8mf8 (out + i + 1, v1, vl);
13
14 vint8mf8_t v2 = __riscv_vle8_v_i8mf8 (in + i + 2, vl);
15 __riscv_vse8_v_i8mf8 (out + i + 2, v2, vl);
16
17 vint8mf8_t v3 = __riscv_vle8_v_i8mf8 (in + i + 3, vl);
18 __riscv_vse8_v_i8mf8 (out + i + 3, v3, vl);
19
20 vint8mf8_t v4 = __riscv_vle8_v_i8mf8 (in + i + 4, vl);
21 __riscv_vse8_v_i8mf8 (out + i + 4, v4, vl);
22
23 vint8mf8_t v5 = __riscv_vle8_v_i8mf8 (in + i + 5, vl);
24 __riscv_vse8_v_i8mf8 (out + i + 5, v5, vl);
25
26 vint8mf8_t v6 = __riscv_vle8_v_i8mf8 (in + i + 6, vl);
27 __riscv_vse8_v_i8mf8 (out + i + 6, v6, vl);
28
29 vint8mf8_t v7 = __riscv_vle8_v_i8mf8 (in + i + 7, vl);
30 __riscv_vse8_v_i8mf8 (out + i + 7, v7, vl);
31
32 vint8mf8_t v8 = __riscv_vle8_v_i8mf8 (in + i + 8, vl);
33 __riscv_vse8_v_i8mf8 (out + i + 8, v8, vl);
34
35 vint8mf8_t v9 = __riscv_vle8_v_i8mf8 (in + i + 9, vl);
36 __riscv_vse8_v_i8mf8 (out + i + 9, v9, vl);
37
38 vint8mf8_t v10 = __riscv_vle8_v_i8mf8 (in + i + 10, vl);
39 __riscv_vse8_v_i8mf8 (out + i + 10, v10, vl);
40
41 vint8mf8_t v11 = __riscv_vle8_v_i8mf8 (in + i + 11, vl);
42 __riscv_vse8_v_i8mf8 (out + i + 11, v11, vl);
43
44 vint8mf8_t v12 = __riscv_vle8_v_i8mf8 (in + i + 12, vl);
45 __riscv_vse8_v_i8mf8 (out + i + 12, v12, vl);
46
47 vint8mf8_t v13 = __riscv_vle8_v_i8mf8 (in + i + 13, vl);
48 __riscv_vse8_v_i8mf8 (out + i + 13, v13, vl);
49
50 vint8mf8_t v14 = __riscv_vle8_v_i8mf8 (in + i + 14, vl);
51 __riscv_vse8_v_i8mf8 (out + i + 14, v14, vl);
52 }
53 }
54
55 /* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*[a-x0-9]+,\s*e8,\s*mf8,\s*t[au],\s*m[au]} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */
56 /* { dg-final { scan-assembler-times {vsetvli} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */
57 /* { dg-final { scan-assembler-times {li\s+[a-x0-9]+,32} 1 { target { no-opts "-O0" no-opts "-g" no-opts "-funroll-loops" } } } } */