diff options
author | Andrew Pinski <apinski@marvell.com> | 2022-08-15 17:50:50 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2022-08-24 12:15:32 -0700 |
commit | b7d4b734f2d81eccb67903e4fa8f94249238d39c (patch) | |
tree | 1aafb054ee66e3b89c70914d0cedfecd699aa2d6 /libcpp/charset.cc | |
parent | 473d7aad848fe6ec151e7445e06c6e06ee4bd576 (diff) | |
download | gcc-b7d4b734f2d81eccb67903e4fa8f94249238d39c.zip gcc-b7d4b734f2d81eccb67903e4fa8f94249238d39c.tar.gz gcc-b7d4b734f2d81eccb67903e4fa8f94249238d39c.tar.bz2 |
[RISCV] Use constraints/predicates instead of checking const_int directly for shNadd patterns
This simplifies the code by adding a predicate and a constraint for 1/2/3.
The aarch64 backend has a similar predicate called aarch64_shift_imm_<mode>
which they use there.
OK? Built and tested on riscv32-linux-gnu and riscv64-linux-gnu with no regressions.
Thanks,
Andrew Pinski
gcc/ChangeLog:
* config/riscv/constraints.md (Ds3): New constraint.
* config/riscv/predicates.md (imm123_operand): New predicate.
* config/riscv/bitmanip.md (*shNadd): Use Ds3 and imm123_operand.
(*shNadduw): Likewise.
Diffstat (limited to 'libcpp/charset.cc')
0 files changed, 0 insertions, 0 deletions