Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/slp-mask-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=gnu99 -O3 -march=rv64gcv -mabi=lp64d -mrvv-vector-bits=scalable -fdump-tree-slp-details" } */
3
4 void
5 __attribute__ ((noipa))
6 f (int *restrict x, short *restrict y, int *restrict res)
7 {
8 res[0] = x[0] == 1 & y[0] == 2;
9 res[1] = x[1] == 1 & y[1] == 2;
10 res[2] = x[2] == 1 & y[2] == 2;
11 res[3] = x[3] == 1 & y[3] == 2;
12 res[4] = x[4] == 1 & y[4] == 2;
13 res[5] = x[5] == 1 & y[5] == 2;
14 res[6] = x[6] == 1 & y[6] == 2;
15 res[7] = x[7] == 1 & y[7] == 2;
16 }
17
18 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "slp2" } } */