https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125395
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:df00ab045c155e2edfb8ffa55e42109bf1402934 commit r17-1447-gdf00ab045c155e2edfb8ffa55e42109bf1402934 Author: JRobinNTA <[email protected]> Date: Tue Jun 9 06:58:14 2026 -0600 [PATCH] RISC-V: Fix static rounding mode splicing for xtheadvector [PR125395] When generating assembly for T-Head vector float conversions, the backend used hardcoded pointer math that failed to account for static rounding mode suffixes (e.g., .rtz). Additionally, intercept blocks for VFCVT and VFWCVT were entirely missing, allowing illegal static rounding modes to leak into the assembler. This patch adds the missing conversion blocks and introduces an offset calculation to safely bypass the mnemonic regardless of standard RVV rounding suffixes. PR target/125395 gcc/ChangeLog: * config/riscv/thead.cc (th_asm_output_opcode): Add VFCVT and VFWCVT blocks. Add offset logic for static rounding suffixes. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/xtheadvector/pr125395.c: New test.
