target/riscv: Split gen_arith_imm into functional and temp
commit598aa1160c3d17ab9271daf1f69d093ebada3f25
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 1 Apr 2019 03:11:54 +0000 (1 10:11 +0700)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 24 May 2019 19:09:23 +0000 (24 12:09 -0700)
treec548ecd7a55313cdb884363cd8c0f05ce1f52a79
parent0e68e240a9bd3b44a91cd6012f0e2bf2a43b9fe2
target/riscv: Split gen_arith_imm into functional and temp

The tcg_gen_fooi_tl functions have some immediate constant
folding built in, which match up with some of the riscv asm
builtin macros, like mv and not.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/insn_trans/trans_rvi.inc.c
target/riscv/translate.c