]> git.ipfire.org Git - thirdparty/gcc.git/commit
[RISCV] Use a constraint for bset<mode>_mask and bset<mode>_1_mask
authorAndrew Pinski <apinski@marvell.com>
Mon, 15 Aug 2022 18:39:17 +0000 (18:39 +0000)
committerAndrew Pinski <apinski@marvell.com>
Wed, 24 Aug 2022 19:15:32 +0000 (12:15 -0700)
commit95989ab39bbedd34e6f508de3109cb5c17db433e
tree8fd16f0ab40f9451beb402f33aab7b8a777f9acd
parentb7d4b734f2d81eccb67903e4fa8f94249238d39c
[RISCV] Use a constraint for bset<mode>_mask and bset<mode>_1_mask

A constraint here just makes it easier to understand what the
operands are.

OK? Built and tested on riscv32-linux-gnu and riscv64-linux-gnu with
--with-arch=rvNimafdc_zba_zbb_zbc_zbs (where N is 32 and 64).

Thanks,
Andrew Pinski

gcc/ChangeLog:

* config/riscv/constraints.md (DsS): New constraint.
(DsD): New constraint.
* config/riscv/iterators.md (shiftm1c): New iterator.
* config/riscv/bitmanip.md (*bset<mode>_mask):
Use shiftm1c.
(*bset<mode>_1_mask): Likewise.
gcc/config/riscv/bitmanip.md
gcc/config/riscv/constraints.md
gcc/config/riscv/iterators.md