[AArch64] ldr= pseudo-instruction silently ignored if register invalid
authorOliver Stannard <oliver.stannard@arm.com>
Mon, 16 Nov 2015 10:25:19 +0000 (10:25 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Mon, 16 Nov 2015 10:25:19 +0000 (10:25 +0000)
commitf88d08f7c5c8305929259b283103419d3954a126
treeb9374482ffc482d7cbbf0bf34f6ee2b632dbd7a5
parent8b4675ffaa2ed4ea5dbb1add12e9f580409ebb61
[AArch64] ldr= pseudo-instruction silently ignored if register invalid

The AArch64 assembler was silently ignoring instructions like this:
  ldr foo, =bar

AArch64AsmParser::parseOperand was returning true as the parse failed, but was
not calling AArch64AsmParser::Error to report this to the user, so the
instruction was ignored without printing an error message.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253193 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/ldr-pseudo-diagnostics.s