Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/cond/pr111594.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=rv64gcv -mabi=lp64d -fno-vect-cost-model -ffast-math" } */
3
4 #include <stdint-gcc.h>
5
6 void
7 pr11594 (uint64_t *restrict a, uint64_t *restrict b, int loop_size)
8 {
9 uint64_t result = 0;
10
11 for (int i = 0; i < loop_size; i++)
12 {
13 if (b[i] <= a[i])
14 {
15 result += a[i];
16 }
17 }
18
19 a[0] = result;
20 }
21
22 /* { dg-final { scan-assembler-not {vmerge} } } */