OSDN Git Service

Fix lowering ARM shift by zero as a move.
authorNicolas Capens <capn@google.com>
Mon, 1 May 2017 19:31:29 +0000 (15:31 -0400)
committerNicolas Capens <nicolascapens@google.com>
Tue, 2 May 2017 14:22:38 +0000 (14:22 +0000)
commitfb705a6d55003b2c32772ae49e25b0babcff5acc
tree0003a7fb4cc1d78774492565490c63334244a1ea
parent6c629dc303ddbb76edc70832073bc22657783079
Fix lowering ARM shift by zero as a move.

ARM does not support shifting by 0. An immediate value of 0 is interpreted as
shifting by 32. See section A8.4.1 Constant shifts of the ARMv7-A/R reference
manual.

Change-Id: I289a7c6091c04387700dc2e9b3f959639bd919ce
Reviewed-on: https://chromium-review.googlesource.com/491949
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
src/IceTargetLoweringARM32.cpp