[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)
commitf8b834049ae0bf13de126c8ca7d2c9628fb9bec9
treef76d8228abe7a45484e19dfd24ed2cd8b1377e50
parent5205c35075c24ab6e946c91e171fb93fe6fba98c
[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

llvm-svn: 288876
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/Analysis/CostModel/AArch64/gep.ll