Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vlmax_conflict-11.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mrvv-vector-bits=scalable -march=rv32gcv -mabi=ilp32 -fno-tree-vectorize" } */
3
4 #include "riscv_vector.h"
5
6 void f (int32_t * restrict in, int32_t * restrict out, size_t n, size_t m, size_t cond, size_t cond2)
7 {
8 for (int i = 0; i < n; i++) {
9 vint8mf8_t v = *(vint8mf8_t*) (in + i + 1);
10 *(vint8mf8_t*) (out + i + 1) = v;
11 }
12 for (int i = 0; i < n; i++) {
13 vfloat32mf2_t v = *(vfloat32mf2_t*) (in + i + 2);
14 *(vfloat32mf2_t*) (out + i + 2) = v;
15 }
16 for (int i = 0; i < n; i++) {
17 vfloat32mf2_t v;
18 *(vfloat32mf2_t*) (out + i + 3) = v;
19 }
20 }
21
22 /* { dg-final { scan-assembler-times {vsetvli\s+[a-x0-9]+,\s*zero,\s*e8,\s*mf8,\s*t[au],\s*m[au]} 1 { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-Oz" no-opts "-funroll-loops" no-opts "-g" } } } } */
23 /* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*zero,\s*e32,\s*mf2,\s*t[au],\s*m[au]} 1 { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-Oz" no-opts "-funroll-loops" no-opts "-g" } } } } */
24 /* { dg-final { scan-assembler-times {vsetvli} 2 { target { no-opts "-O0" no-opts "-O1" no-opts "-Os" no-opts "-Oz" no-opts "-funroll-loops" no-opts "-g" } } } } */