gcc/testsuite/gcc.target/riscv/rvv/base/vxrm-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | |
| 6 | void f (uint16_t *base,uint8_t *out,size_t vl, size_t shift) |
| 7 | { |
| 8 | vuint16m2_t src = __riscv_vle16_v_u16m2 (base, vl); |
| 9 | vuint8m1_t v = __riscv_vnclipu_wx_u8m1(src,shift,shift,vl); /* { dg-error {argument 3 of '__riscv_vnclipu_wx_u8m1' must be an integer constant expression} } */ |
| 10 | __riscv_vse8_v_u8m1 (out,v,vl); |
| 11 | } |