OSDN Git Service

Do not overwrite an input register in shift operations.
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 22 Jun 2015 22:12:45 +0000 (23:12 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 23 Jun 2015 10:02:44 +0000 (11:02 +0100)
commita4f3581da73b83484a30ab499c4f8ad43b378dab
treea4f11578fc3df63ed9d63e248f01d09d4ff18438
parent2d655f1ce89a714094a4f55ac75edcf9a34c7e24
Do not overwrite an input register in shift operations.

'second_reg' is an input register that can survive the instruction.
Instead use the output register as a temporary result.

bug:21667432
Change-Id: I1a4577b0333c3fb184645023d5eae30555bbf65c
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_arm.h
test/514-shifts/expected.txt [new file with mode: 0644]
test/514-shifts/info.txt [new file with mode: 0644]
test/514-shifts/src/Main.java [new file with mode: 0644]