[Bug target/113608] RISC-V: Vector spills after enabling vector abi

2024-02-01 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113608 --- Comment #2 from JuzheZhong --- vuint16m2_t vadd(vuint16m2_t a, vuint8m1_t b) { int vl = __riscv_vsetvlmax_e8m1(); vuint16m2_t c = __riscv_vzext_vf2_u16m2(b, vl); return __riscv_vadd_vv_u16m2(a, c, vl); }

[Bug target/113608] RISC-V: Vector spills after enabling vector abi

2024-01-25 Thread lehua.ding at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113608 --- Comment #1 from Lehua Ding --- (In reply to JuzheZhong from comment #0) > https://godbolt.org/z/srdd4qhdc > > #include "riscv_vector.h" > > vint32m8_t > foo (int32_t *__restrict a, int32_t *__restrict b, int32_t *__restrict c, > int32