gcc/testsuite/gcc.target/riscv/rvv/vsetvl/vsetvl_bug-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv32gcv -mabi=ilp32d -O2 -fdump-rtl-vsetvl-details" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | |
| 6 | uint64_t a[2], b[2]; |
| 7 | |
| 8 | void |
| 9 | foo () |
| 10 | { |
| 11 | size_t vl = __riscv_vsetvl_e64m1 (2); |
| 12 | vuint64m1_t vx = __riscv_vle64_v_u64m1 (a, vl); |
| 13 | vx = __riscv_vslide1down_vx_u64m1 (vx, 0xffffffffull, vl); |
| 14 | __riscv_vse64_v_u64m1 (b, vx, vl); |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-rtl-dump-not "Eliminate insn" "vsetvl" } } */ |