Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve2/pr116934.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Ofast -mcpu=neoverse-v2" } */
3
4 int a;
5 float *b;
6
7 void foo() {
8 for (; a; a--, b += 4) {
9 b[0] = b[1] = b[2] = b[2] > 0 ?: 0;
10 if (b[3] < 0)
11 b[3] = 0;
12 }
13 }