/[qemu]
ViewVC logotype

Revision 5680


Jump to revision: Previous Next
Author: aurel32
Date: Tue Nov 11 11:50:17 2008 UTC (15 years ago)
Changed paths: 1
Log Message:
target-mips: optimize gen_arith()/gen_arith_imm()

Optimize code generation in gen_arith()/gen_arith_imm():
- Don't do sign extension when the value is already guaranteed to be
  sign extended (otherwise, results are marked as UNPREDICTABLE).
- When the value is sign extended, compare the value to 0 instead of
  testing bit 31/63.
- Temp variables are valid up to and *including* the brcond instruction.
  Use them instead of temp local variables.

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

Changed paths:

Path Details
Directorytrunk/target-mips/translate.c modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5