diff options
author | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-09-14 14:16:27 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2022-11-18 21:15:24 +0100 |
commit | 787ac95917a666b3d186e2d5afec07ee5b75c6df (patch) | |
tree | 226dc225e6f03496f02c9783675e857eb0f0bb5f /gcc/jit | |
parent | 30c2d8df173a6f3ca145cda9f9e261616fca8467 (diff) | |
download | gcc-787ac95917a666b3d186e2d5afec07ee5b75c6df.zip gcc-787ac95917a666b3d186e2d5afec07ee5b75c6df.tar.gz gcc-787ac95917a666b3d186e2d5afec07ee5b75c6df.tar.bz2 |
RISC-V: Optimize slli(.uw)? + addw + zext.w into sh[123]add + zext.w
gcc/ChangeLog:
* config/riscv/bitmanip.md: Handle corner-cases for combine
when chaining slli(.uw)? + addw
* config/riscv/riscv-protos.h (riscv_shamt_matches_mask_p):
Define prototype.
* config/riscv/riscv.cc (riscv_shamt_matches_mask_p):
Helper for evaluating the relationship between two operands.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/zba-shNadd-04.c: New test.
Diffstat (limited to 'gcc/jit')
0 files changed, 0 insertions, 0 deletions