Debian Codegraph @

gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/pr112387-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -mtune=generic-ooo -O3 -ftree-vectorize -fdump-tree-vect-details" } */
3
4 #include <stdint-gcc.h>
5
6 void
7 f2 (uint64_t *__restrict y, uint64_t *__restrict x,
8 uint64_t *__restrict indices, uint64_t n)
9 {
10 for (int64_t i = 0; i < n; ++i)
11 {
12 y[i * 2] = x[indices[i * 2]] + 1;
13 y[i * 2 + 1] = x[indices[i * 2 + 1]] + 2;
14 }
15 }
16
17 /* { dg-final { scan-tree-dump "Loop contains only SLP stmts" vect } } */
18 /* { dg-final { scan-assembler-not "vlseg" } } */
19 /* { dg-final { scan-assembler-not "vsseg" } } */