diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-01 15:29:07 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-01 15:29:07 +0000 |
commit | cc3acee7b3e1f5813ac604bee18928410270f464 (patch) | |
tree | bc260c6f1142ba20794cee32fed08c5314ef0c23 | |
parent | 484291c27319668ad99cb87def000254357736fb (diff) |
Add support for .value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117922 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_values.s | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 685b6b8365..8aaee95eda 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 c7617a337e..c222a30484 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 |