Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/slp-7.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=rv32gcv -mabi=ilp32d -mrvv-vector-bits=scalable -fdump-tree-optimized-details" } */
3
4 #include <stdint-gcc.h>
5
6 void __attribute__ ((noipa))
7 f (float *__restrict f, double *__restrict d, int n)
8 {
9 for (int i = 0; i < n; ++i)
10 {
11 f[i * 2 + 0] = 1;
12 f[i * 2 + 1] = 2;
13 d[i] = 3;
14 }
15 }