OSDN Git Service

[AArch64] Correct the check of signed 9-bit imm in isLegalAddressingMode()
authorHaicheng Wu <haicheng@codeaurora.org>
Wed, 7 Dec 2016 01:45:04 +0000 (01:45 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Wed, 7 Dec 2016 01:45:04 +0000 (01:45 +0000)
commitd55bd2eef3750e951085895c1fca493f828ad155
treef225bf6c663108f669d31dc4893af363b2dc78e3
parent742805e0ea2f98e22aef1b43654d91d93d33a417
[AArch64] Correct the check of signed 9-bit imm in isLegalAddressingMode()

In the addressing mode, signed 9-bit imm is [-256, 255], not [-512, 511].

Differential Revision: https://reviews.llvm.org/D27480

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
test/Analysis/CostModel/AArch64/gep.ll