diff options
author | Edwin Lu <ewlu@rivosinc.com> | 2024-06-14 09:46:01 -0700 |
---|---|---|
committer | Edwin Lu <ewlu@rivosinc.com> | 2024-06-18 15:28:17 -0700 |
commit | ffe5141f30655e1889c8d0471a4f60fa4d64d1b0 (patch) | |
tree | 276c295b52334a40cdbc4b00dc19818dbca6fa5e /MAINTAINERS | |
parent | 6638ba17eadc0f450faa3d8c2f77afe7fdb20614 (diff) | |
download | gcc-ffe5141f30655e1889c8d0471a4f60fa4d64d1b0.zip gcc-ffe5141f30655e1889c8d0471a4f60fa4d64d1b0.tar.gz gcc-ffe5141f30655e1889c8d0471a4f60fa4d64d1b0.tar.bz2 |
RISC-V: Move mode assertion out of conditional branch in emit_insn
When emitting insns, we have an early assertion to ensure the input
operand's mode and the expanded operand's mode are the same; however, it
does not perform this check if the pattern does not have an explicit
machine mode specifying the operand. In this scenario, it will always
assume that mode = Pmode to correctly satisfy the
maybe_legitimize_operand check, however, there may be problems when
working in 32 bit environments.
Make the assert unconditional and replace it with an internal error for
more descriptive logging
gcc/ChangeLog:
* config/riscv/riscv-v.cc: Move assert out of conditional block
Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
Co-authored-by: Robin Dapp <rdapp@ventanamicro.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions