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:18:04 +0000 (11:18 +0100)
commitad3359e77357cc5ce29ce529ab2ed9d0d8401da4
treeb1b40e9dd3eae290ac826dbe8e18ea15b05e3d23
parent7c19550e66162442c1341e60578996f92dccf8ec
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

(cherry picked from commit a4f3581da73b83484a30ab499c4f8ad43b378dab)

Change-Id: Ic1f399964911b8a9fc57352130c92b2a0a1b8e0d
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]