target-mips: optimize gen_muldiv()
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 11 Nov 2008 11:50:25 +0000 (11:50 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 11 Nov 2008 11:50:25 +0000 (11:50 +0000)
commitb10fa3c906a3d48ee58d64663f9d020ef90d897d
tree2a5d30695b82d62b6e8b0d39194e944697fe578c
parent507563e85db880ff875f0a9498a1cf58a50cfad3
target-mips: optimize gen_muldiv()

Optimize code generation in gen_muldiv():
- Don't do sign extension when the value is already guaranteed to be
  sign extended (otherwise, results are marked as UNPREDICTABLE).
- Access the LO, HI registers directly instead of writting them through
  a temporary variable.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5681 c046a42c-6fe2-441c-8c8c-71466251a162
target-mips/translate.c