gcc/testsuite/gcc.target/riscv/rvv/base/pr122652.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=rv64gcv -mabi=lp64d" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | |
| 6 | int a; |
| 7 | int b(); |
| 8 | |
| 9 | int c() { |
| 10 | if (b()) |
| 11 | a = 0; |
| 12 | } |
| 13 | |
| 14 | void d() { |
| 15 | for (; c() + d;) { |
| 16 | long e, h; |
| 17 | char *f; |
| 18 | __rvv_uint16mf4_t g; |
| 19 | __rvv_uint8mf8x3_t i = __riscv_vlseg3e8ff_v_u8mf8x3(f, &h, e); |
| 20 | __riscv_vsoxseg3ei16_v_u8mf8x3(0, g, i, 0); |
| 21 | } |
| 22 | } |