diff options
-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 ff5298f..09c92b8 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 e6353a4..fc5aeb4 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 |