OSDN Git Service

Fix GenArithOpInt to work with RA correctly
authorSerguei Katkov <serguei.i.katkov@intel.com>
Fri, 14 Mar 2014 06:33:33 +0000 (13:33 +0700)
committerbuzbee <buzbee@google.com>
Thu, 20 Mar 2014 14:03:52 +0000 (07:03 -0700)
commit66da1364425df90e6a03b032ee0a401375e45c39
tree3899f14b7945de135e77827acd6b6323a7d1e0ce
parent77bef430373a56f7dd9ba99ab8471bf5f571253a
Fix GenArithOpInt to work with RA correctly

In a case of mul-int/2addr bytecode when source operand is in
memory implementation should first load value of destination
and then evaluate location for destination. Otherwise load will
be skipped because after evaluation of physical register for
destination load will be ignored due to register allocator
thinks that value is already in register.

Change-Id: Iecee5a07d0fba16b421b8c49d42c5d8623794ad7
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
compiler/dex/quick/x86/int_x86.cc