]> git.ipfire.org Git - thirdparty/gcc.git/commit
[RISCV] Add constraints for not_single_bit_mask_operand/single_bit_mask_operand
authorAndrew Pinski <apinski@marvell.com>
Mon, 15 Aug 2022 22:48:25 +0000 (22:48 +0000)
committerAndrew Pinski <apinski@marvell.com>
Wed, 24 Aug 2022 19:15:33 +0000 (12:15 -0700)
commit2a5549f1cc8a6ac58a7b19613e788ec5c41ac89c
tree87e3434af149560729f5679960189ce309378693
parent2c721ea9473ad7615bb47b66509097bd254bb839
[RISCV] Add constraints for not_single_bit_mask_operand/single_bit_mask_operand

Like a previous patch, just add constraints for predicates
not_single_bit_mask_operand and single_bit_mask_operand.

OK? Built and tested for riscv32-linux-gnu and riscv64-linux-gnu.

Thanks,
Andrew Pinski

gcc/ChangeLog:

* config/riscv/constraints.md (DbS): New constraint.
(DnS): New constraint.
* config/riscv/bitmanip.md (*bset<mode>_1_mask): Use new constraint.
(*bclr<mode>): Likewise.
(*binvi<mode>): Likewise.
gcc/config/riscv/bitmanip.md
gcc/config/riscv/constraints.md