]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/optimize: fix setcond2 optimization
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 8 May 2013 20:36:39 +0000 (22:36 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 14 May 2013 18:03:45 +0000 (13:03 -0500)
commit93399d08275ff0243ef8c0a2709098bd6192343e
tree76680d69b12ad52df677e42c5557bc855131b38b
parent074dd56a01b33b8ecc2b9d370e767fb13d3aaf5e
tcg/optimize: fix setcond2 optimization

When setcond2 is rewritten into setcond, the state of the destination
temp should be reset, so that a copy of the previous value is not
used instead of the result.

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 66e61b55f158ef5628e4c056dd2f233c9351a3f5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/optimize.c