Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/extract_last_run-1.c

raw
1 /* { dg-do run { target { riscv_v } } } */
2 /* { dg-additional-options "-mrvv-vector-bits=zvl -fno-vect-cost-model" } */
3
4 #include "extract_last-1.c"
5
6 int __attribute__ ((optimize (1)))
7 main (void)
8 {
9 int a[N] = {
10 11, -12, 13, 14, 15, 16, 17, 18, 19, 20,
11 1, 2, -3, 4, 5, 6, 7, -8, 9, 10,
12 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
13 31, 32
14 };
15
16 int ret = condition_reduction (a, 1);
17
18 if (ret != 17)
19 __builtin_abort ();
20
21 return 0;
22 }