gcc/testsuite/gcc.target/riscv/rvv/base/vxrm-5.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,10,vl); /* { dg-error {passing 10 to argument 3 of '__riscv_vnclipu_wx_u8m1', which expects a value in the range \[0, 3\]} } */ |
| 10 | __riscv_vse8_v_u8m1 (out,v,vl); |
| 11 | } |