diff options
author | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-10-10 22:24:02 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-11-18 21:15:24 +0100 |
commit | 23d9f62c50d935462ecda5516746037a474c25cd (patch) | |
tree | 4841223248fdc3d43760442184b90938c3cf59f4 /gcc/tree.cc | |
parent | 11543b27fe16d81ca5483ecb98ec7a5b2426e0c0 (diff) | |
download | gcc-23d9f62c50d935462ecda5516746037a474c25cd.zip gcc-23d9f62c50d935462ecda5516746037a474c25cd.tar.gz gcc-23d9f62c50d935462ecda5516746037a474c25cd.tar.bz2 |
RISC-V: allow bseti on SImode without sign-extension
As long as the SImode operand is not a partial subreg, we can use a
bseti without postprocessing to or in a bit, as the middle end is
smart enough to stay away from the signbit.
gcc/ChangeLog:
* config/riscv/bitmanip.md (*bsetidisi): New pattern.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/zbs-bseti-02.c: New test.
Diffstat (limited to 'gcc/tree.cc')
0 files changed, 0 insertions, 0 deletions