gcc/testsuite/gcc.target/riscv/rvv/autovec/pr111295.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gcv -mabi=lp64d -Ofast -ftree-vectorize -mrvv-vector-bits=scalable -Wno-implicit-function-declaration" } */ |
| 3 | |
| 4 | #include <stdbool.h> |
| 5 | int a, b, c, e, f, g, h, i, j, k; |
| 6 | long l; |
| 7 | int q () |
| 8 | { |
| 9 | int r (); |
| 10 | char *o, *d; |
| 11 | _Bool p = f; |
| 12 | while (g) |
| 13 | { |
| 14 | int m, n; |
| 15 | for (; m <= n; m++) |
| 16 | *d++ = m; |
| 17 | k = 1; |
| 18 | if (e) |
| 19 | break; |
| 20 | switch (*o) |
| 21 | { |
| 22 | case 'N': |
| 23 | o++; |
| 24 | if (c) |
| 25 | if (h) |
| 26 | while (i) |
| 27 | { |
| 28 | s (-l, ~0); |
| 29 | t (j); |
| 30 | d = d + (a & 10000000 ? u (r, 2) : b); |
| 31 | } |
| 32 | } |
| 33 | if (*o) |
| 34 | p ? s () : 0; |
| 35 | } |
| 36 | } |