]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Fix matches against subreg with a bytenum of 0 in riscv.md
authorMarcus Comstedt <marcus@mc.pp.se>
Fri, 19 Mar 2021 19:49:08 +0000 (20:49 +0100)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 23 Mar 2021 09:32:41 +0000 (17:32 +0800)
commit7ac4dfec3912ef0be85542a00628c3ba01ddea2a
treea9e0f6195977bd67711c2e5dde17f5465f17eed0
parent4eb3a801a5ed947a50f941b63e30a0359fccf138
RISC-V: Fix matches against subreg with a bytenum of 0 in riscv.md

These all intend the least significant subpart of the register.
Use the same endian-neutral "subreg_lowpart_operator" predicate that
ARM does instead.

gcc/
* config/riscv/predicates.md (subreg_lowpart_operator): New predicate
* config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
(*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
(*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
(*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
new predicate "subreg_lowpart_operator"
gcc/config/riscv/predicates.md
gcc/config/riscv/riscv.md
This page took 0.054649 seconds and 6 git commands to generate.