]> git.ipfire.org Git - thirdparty/gcc.git/commit
Partially revert patch that made VXRM a global register on RISC-V
authorJeff Law <jeffrey.law@oss.qualcomm.com>
Sun, 4 Jan 2026 19:12:21 +0000 (12:12 -0700)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Sun, 4 Jan 2026 19:12:21 +0000 (12:12 -0700)
commit08ccc67ef44b4ddea72ea50d465d38b87414ecce
tree5d7f53f7cd8af8cf5845799b1faa9d77e0e26dc5
parent72274d0a421785ed38ad704af1192a7578660e7f
Partially revert patch that made VXRM a global register on RISC-V

This is something that fell through the cracks in gcc-15.  VXRM isn't heavily
used, so errors in this space could easily be going unnoticed right now.

Essentially we made VXRM a global register a while back, it was done somewhat
speculatively as we didn't have a case where it really mattered.  Richard S.
then argued the patch was wrong and I agreed with him, but never got around to
reverting the hunk in question.

So that's what I'm finally doing here.  Note that I kept the tests from the
patch which made VXRM a global.  Those should continue to work.

Bootstrapped and regression tested on a BPI & Pioneer system and checked on
riscv{32,64}-elf as well.

gcc/
* config/riscv/riscv.cc (riscv_conditional_register_usage): Revert
patch that made VXRM a global register.
gcc/config/riscv/riscv.cc