[Bug target/116590] New: unrecognized opcode th.vmv8r.v th.vfrec7.v when compiling for risc-v xtheadvector

2024-09-03 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116590 Bug ID: 116590 Summary: unrecognized opcode th.vmv8r.v th.vfrec7.v when compiling for risc-v xtheadvector Product: gcc Version: 15.0 Status: UNCONFIRMED Severi

[Bug tree-optimization/116591] New: internal compiler error: in to_constant or extract_insn when compiling for risc-v xtheadvector

2024-09-03 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116591 Bug ID: 116591 Summary: internal compiler error: in to_constant or extract_insn when compiling for risc-v xtheadvector Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/116590] unrecognized opcode th.vmv8r.v th.vfrec7.v when compiling for risc-v xtheadvector

2024-09-03 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116590 --- Comment #2 from nihui --- (In reply to Andrew Pinski from comment #1) > What version of binutils are you using? binutils master branch commit 5cca20f614694ba6af3c10ca5bb93c32cdb9522b (HEAD -> master, origin/master, origin/HEAD) Author: GD

[Bug target/116592] New: illegal operands th.vsetvli zero,0,e32,m8 with -O2 -O3 when compiling for risc-v xtheadvector

2024-09-03 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116592 Bug ID: 116592 Summary: illegal operands th.vsetvli zero,0,e32,m8 with -O2 -O3 when compiling for risc-v xtheadvector Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug tree-optimization/116593] New: internal compiler error: in get_attr_type, at config/riscv/riscv.md:28048 with -O2 -O3 when compiling for risc-v xtheadvector

2024-09-03 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116593 Bug ID: 116593 Summary: internal compiler error: in get_attr_type, at config/riscv/riscv.md:28048 with -O2 -O3 when compiling for risc-v xtheadvector Product: gcc

[Bug target/116590] unrecognized opcode th.vmv8r.v th.vfrec7.v when compiling for risc-v xtheadvector

2024-11-16 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116590 --- Comment #4 from nihui --- Some more detailed investigation vfrec7 I can use vfdiv instead, which works, but the vmv1r vmv8r instructions are hard to avoid in the code, as they seem to be added automatically by the compiler I wrote 3 test c

[Bug target/118357] New: risc-v xtheadvector did not handle the logic of vsetvl properly

2025-01-08 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118357 Bug ID: 118357 Summary: risc-v xtheadvector did not handle the logic of vsetvl properly Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug target/119348] risc-v vector tuple casting optimization regression

2025-03-17 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 --- Comment #1 from nihui --- tested commit gcc 7efe3aa9b5d4d7aba3736d1393b007705522dc45 binutils cf4fdbd491bbf60267d4ba6ec3f533944e376e6c

[Bug target/119348] New: risc-v vector tuple casting optimization regression

2025-03-17 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 Bug ID: 119348 Summary: risc-v vector tuple casting optimization regression Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug target/119348] risc-v vector tuple casting optimization regression

2025-03-17 Thread shuizhuyuanluo at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119348 --- Comment #2 from nihui --- aha, just found that pointer casting works in gcc :) though clang seems unhappy about it ```c #include vfloat32m8_t convert_vfloat32m1x8_to_vfloat32m8(vfloat32m1x8_t tuple) { return *(vfloat32m8_t*)(&tuple);