From: Rafael Espindola Date: Mon, 1 Nov 2010 15:29:07 +0000 (+0000) Subject: Add support for .value. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cc3acee7b3e1f5813ac604bee18928410270f464;p=oota-llvm.git Add support for .value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117922 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 685b6b8365b..8aaee95eda8 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -929,6 +929,8 @@ bool AsmParser::ParseStatement() { return ParseDirectiveValue(1); if (IDVal == ".short") return ParseDirectiveValue(2); + if (IDVal == ".value") + return ParseDirectiveValue(2); if (IDVal == ".long") return ParseDirectiveValue(4); if (IDVal == ".quad") diff --git a/test/MC/AsmParser/directive_values.s b/test/MC/AsmParser/directive_values.s index c7617a337e0..c222a304848 100644 --- a/test/MC/AsmParser/directive_values.s +++ b/test/MC/AsmParser/directive_values.s @@ -36,3 +36,7 @@ TEST4: # CHECK: .quad 1075 +TEST5: + .value 8 +# CHECK: TEST5: +# CHECK: .short 8