[turbofan] Use sbfx in ARM64 instruction selector
authormartyn.capewell <martyn.capewell@arm.com>
Fri, 8 May 2015 12:51:42 +0000 (05:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 May 2015 12:51:43 +0000 (12:51 +0000)
commit6e6d956e1199d80e3e53739958d061b6a1c36fad
treeb1b47f076bd21de7c3e6a6350f2ba59a43922977
parentad547cea05f3e02c67243b682e933fc53ac763d9
[turbofan] Use sbfx in ARM64 instruction selector

Select sbfx for ((x << k) >> k) in ARM64 instruction selector, and similarly
for ubfx. This is a more generic version of the previous sxtb/h selector.

BUG=

Review URL: https://codereview.chromium.org/1135543002

Cr-Commit-Position: refs/heads/master@{#28318}
src/compiler/arm64/code-generator-arm64.cc
src/compiler/arm64/instruction-codes-arm64.h
src/compiler/arm64/instruction-selector-arm64.cc
test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc