gcc/testsuite/gcc.target/riscv/rvv/base/pr114195-1.c
raw| 1 | /* Test that we do not have ice when compile */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -ftree-vectorize" } */ |
| 4 | |
| 5 | long a, b; |
| 6 | extern short c[]; |
| 7 | |
| 8 | void d() { |
| 9 | for (int e = 0; e < 35; e = 2) { |
| 10 | a = ({ a < 0 ? a : 0; }); |
| 11 | b = ({ b < 0 ? b : 0; }); |
| 12 | |
| 13 | c[e] = 0; |
| 14 | } |
| 15 | } |