RISC-V: Use li and rori to load constants.
authorJim Wilson <jimw@sifive.com>
Sat, 31 Oct 2020 18:41:19 +0000 (11:41 -0700)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 25 Oct 2021 09:06:46 +0000 (17:06 +0800)
commit26d2818bb73a09622f87df53d6280d18b229bcbc
tree814a9c8399213bfe6c8375243704d320b621967d
parent3329d892eb603fbe4e7c393f19d35739fe400a22
RISC-V: Use li and rori to load constants.

gcc/ChangeLog:

* config/riscv/riscv.c (riscv_build_integer_1): Build integer
with rotate.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/zbb-li-rotr.c: New.
gcc/config/riscv/riscv.c
gcc/testsuite/gcc.target/riscv/zbb-li-rotr.c [new file with mode: 0644]