RISC-V: Fix wrong partial subreg check for bsetidisi
authorLin Sinan <sinan.lin@linux.alibaba.com>
Tue, 28 Feb 2023 05:00:36 +0000 (13:00 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Sun, 5 Mar 2023 08:59:16 +0000 (16:59 +0800)
commit9debb240a4b1a711c0648fd9e4385dbde5ad45fd
tree414af6f3f45df664df8806f4a0e95939de43cfc2
parent2858bf16d33673044f49b106c8eb71dd423c5967
RISC-V: Fix wrong partial subreg check for bsetidisi

The partial subreg check should be for subreg operand(operand 1) instead of
the immediate operand(operand 2). This change also fix pr68648.c in zbs.

gcc/ChangeLog:

* config/riscv/bitmanip.md: Fix wrong index in the check.
Reviewed-by: <philipp.tomsich@vrull.eu>
gcc/config/riscv/bitmanip.md