diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2023-09-05 17:30:06 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2023-09-05 18:12:23 +0200 |
commit | af5cb06ec17780736749ed51cfc6dfad9397156c (patch) | |
tree | 689a0912edd4cc919e003f7545e2bd78ad014979 /gcc/c | |
parent | efafa66c294d261a4d964383674ab9ee51feaf88 (diff) | |
download | gcc-af5cb06ec17780736749ed51cfc6dfad9397156c.zip gcc-af5cb06ec17780736749ed51cfc6dfad9397156c.tar.gz gcc-af5cb06ec17780736749ed51cfc6dfad9397156c.tar.bz2 |
riscv: xtheadbb: Enable constant synthesis with th.srri
Some constants can be built up using rotate-right instructions.
The code that enables this can be found in riscv_build_integer_1().
However, this functionality is only available for Zbb, which
includes the rori instruction. This patch enables this also for
XTheadBb, which includes the th.srri instruction.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_build_integer_1): Enable constant
synthesis with rotate-right for XTheadBb.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/xtheadbb-li-rotr.c: New test.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions