]> git.proxmox.com Git - mirror_qemu.git/commit
tcg/tci: Emit setcond before brcond
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 1 Feb 2021 19:41:20 +0000 (09:41 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 19 Jun 2021 15:51:24 +0000 (08:51 -0700)
commitfc8ec9e12529eceac4eef483cdde52c14f3ca937
treec88e54df2f5e6f4ab90995759fea3215684a594d
parentbaa94c0d333b5eccd68450625e0c3960e85d1913
tcg/tci: Emit setcond before brcond

The encoding planned for tci does not have enough room for
brcond2, with 4 registers and a condition as input as well
as the label.  Resolve the condition into TCG_REG_TMP, and
relax brcond to one register plus a label, considering the
condition to always be reg != 0.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tci.c
tcg/tci/tcg-target.c.inc