target/riscv: Clean up division helpers
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 23 Aug 2021 19:55:08 +0000 (12:55 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 1 Sep 2021 01:59:12 +0000 (11:59 +1000)
commit4a083b563a2c1bfed9c2b9dc5267d149ea109bde
treee52183628fdf38cc69d624305b775a343a18d6f0
parent9b17ae9c6a143caebdbb9a0c0b2ba66bae900f56
target/riscv: Clean up division helpers

Utilize the condition in the movcond more; this allows some of
the setcond that were feeding into movcond to be removed.
Do not write into source1 and source2.  Re-name "condN" to "tempN"
and use the temporaries for more than holding conditions.

Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210823195529.560295-4-richard.henderson@linaro.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/translate.c