summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-02-16 04:56:31 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-02-16 04:56:31 +0000
commit5a39da0a6fbef90d697054c6075bf5e3ef708c9d (patch)
treead0f5b1c5b494b60f0f211342c0ec2d18e9f3376 /test
parent1edea19210df055ad24dfd18c23973c3668ac738 (diff)
downloadllvm-5a39da0a6fbef90d697054c6075bf5e3ef708c9d.tar.gz
llvm-5a39da0a6fbef90d697054c6075bf5e3ef708c9d.tar.bz2
llvm-5a39da0a6fbef90d697054c6075bf5e3ef708c9d.tar.xz
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
Diffstat (limited to 'test')
-rw-r--r--test/MC/AsmParser/macros-argument-parsing.s10
1 files changed, 10 insertions, 0 deletions
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
+