[AArch64] Fix isLegalAddImmediate() to return true for valid negative values.
authorGeoff Berry <gberry@codeaurora.org>
Mon, 29 Feb 2016 19:53:22 +0000 (19:53 +0000)
committerGeoff Berry <gberry@codeaurora.org>
Mon, 29 Feb 2016 19:53:22 +0000 (19:53 +0000)
commitf5ba61d18cfae11f40ea6fd494c30b76c8494d4d
treea5231b5c11e2c49ba92ea4307ae6d630a512e44a
parentfb2add2be1e00cd003c6c08d41285ca92fba5274
[AArch64] Fix isLegalAddImmediate() to return true for valid negative values.

Reviewers: t.p.northover, jmolloy

Subscribers: mcrosier, aemerson, llvm-commits, rengolin

Differential Revision: http://reviews.llvm.org/D17463

llvm-svn: 262248
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/neg-imm.ll [new file with mode: 0644]