[RISC-V] Defining fixed-size RVV tuple types (GCC 14.2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a question regarding the use of the -mrvv-vector-bits attribute for defining fixed-length variants of RVV tuple data types(e.g. vint8m1x2_t).

#include <riscv_vector.h>

#if defined(__riscv_v_fixed_vlen)
typedef vint8m1_t fixed_vint8m1_t __attribute__((riscv_rvv_vector_bits(__riscv_v_fixed_vlen)));
typedef vint8m1x2_t fixed_vint8m1x2_t __attribute__((riscv_rvv_vector_bits(__riscv_v_fixed_vlen*2))); 

#endif 

Produces an error:

main.c:6:54: error: 'riscv_rvv_vector_bits' attribute applied to non-RVV type 'vint8m1x2_t' (aka '__rvv_int8m1x2_t')
    6 | typedef vint8m1x2_t fixed_vint8m1x2_t __attribute__((riscv_rvv_vector_bits(__riscv_v_fixed_vlen*2)));
      | 






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux