diff options
author | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-09-23 01:37:14 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-11-13 16:47:20 +0100 |
commit | 43435c7eb0ff60f02838674efd99df93852a92cc (patch) | |
tree | e2d0410750a24131f53df90d45047a871a7e1216 /gcc/fortran | |
parent | 3bf46ea7bce58918ae8da1c936fe4c55456d2b6b (diff) | |
download | gcc-43435c7eb0ff60f02838674efd99df93852a92cc.zip gcc-43435c7eb0ff60f02838674efd99df93852a92cc.tar.gz gcc-43435c7eb0ff60f02838674efd99df93852a92cc.tar.bz2 |
RISC-V: optimize '(a >= 0) ? b : 0' to srai + andn, if compiling for Zbb
If-conversion is turning '(a >= 0) ? b : 0' into a branchless sequence
not a5,a0
srai a5,a5,63
and a0,a1,a5
missing the opportunity to combine the NOT and AND into an ANDN.
This adds a define_split to help the combiner reassociate the NOT with
the AND.
gcc/ChangeLog:
* config/riscv/bitmanip.md: New define_split.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/zbb-srai-andn.c: New test.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions