From 5a39da0a6fbef90d697054c6075bf5e3ef708c9d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 16 Feb 2014 04:56:31 +0000 Subject: MCAsmParser: relax declaration parsing The Linux kernel defines empty macros for compatibility with ARM UAL syntax. The comma after the name is optional, and if present can be safely lexed. This improves compatibility with the GNU assembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201474 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/AsmParser/macros-argument-parsing.s | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/MC/AsmParser/macros-argument-parsing.s (limited to 'test') diff --git a/test/MC/AsmParser/macros-argument-parsing.s b/test/MC/AsmParser/macros-argument-parsing.s new file mode 100644 index 0000000000..097a2702a0 --- /dev/null +++ b/test/MC/AsmParser/macros-argument-parsing.s @@ -0,0 +1,10 @@ +# RUN: llvm-mc -triple i386 -filetype asm -o - %s | FileCheck %s + + .macro it, cond + .endm + + it ne + .long 1 + +# CHECK: .long 1 + -- cgit v1.2.3