From ce8463f1fb223ecea1243b2274a7c18ddab6e815 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 7 Apr 2011 20:26:23 +0000 Subject: [PATCH] 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 --- lib/MC/MCParser/AsmParser.cpp | 2 +- test/MC/AsmParser/directive_space.s | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.11.4.GIT