mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
885478f2ad
Do not issue lexing errors found during the parsing of macro body definitions and parseIdentifier function in AsmParser. This changes the Parser to not issue a lexing error when we reach an error, but rather when it is consumed allowing us time to examine and recover from an error. As a result, of this, we stop issuing a both lexing error and a parsing error in floating-literals test. Minor tweak to parseDirectiveRealValue to favor more meaningful lexing error over less helpful parse error. Reviewers: rnk, majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D20535 llvm-svn: 271542
17 lines
278 B
ArmAsm
17 lines
278 B
ArmAsm
# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
|
|
|
|
.macro DEF num
|
|
int $0x\num
|
|
.endm
|
|
DEF 02
|
|
DEF 08
|
|
DEF 09
|
|
DEF 0A
|
|
DEF 10
|
|
|
|
# CHECK: int $2
|
|
# CHECK: int $8
|
|
# CHECK: int $9
|
|
# CHECK: int $10
|
|
# CHECK: int $16
|