diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-07 20:26:23 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-07 20:26:23 +0000 |
commit | ce8463f1fb223ecea1243b2274a7c18ddab6e815 (patch) | |
tree | c744ca813fb8416aa07c84142c3e4c0495f28215 | |
parent | 8d580659f907153add60aff386d7eac4cc80446c (diff) |
Add support for .skip.
Patch by Roman Divacky.
Fixes PR9361.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129106 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_space.s | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index ff5298fe1b..09c92b85f2 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1052,7 +1052,7 @@ bool AsmParser::ParseStatement() { if (IDVal == ".fill") return ParseDirectiveFill(); - if (IDVal == ".space") + if (IDVal == ".space" || IDVal == ".skip") return ParseDirectiveSpace(); if (IDVal == ".zero") return ParseDirectiveZero(); diff --git a/test/MC/AsmParser/directive_space.s b/test/MC/AsmParser/directive_space.s index e6353a4af4..fc5aeb4b63 100644 --- a/test/MC/AsmParser/directive_space.s +++ b/test/MC/AsmParser/directive_space.s @@ -9,3 +9,8 @@ TEST0: # CHECK: .space 2,3 TEST1: .space 2, 3 + +# CHECK: TEST2: +# CHECK: .space 1 +TEST2: + .skip 1 |