diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-21 15:43:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-21 15:43:35 +0000 |
commit | bc38ca7321b4ca32580e397a9b7df970688560c0 (patch) | |
tree | 998c45d45690bef410d0dc1787411949d8ade7fc | |
parent | 25f1aa04ff27ddc3de9154ee58e64a96849ff66c (diff) | |
download | external_llvm-bc38ca7321b4ca32580e397a9b7df970688560c0.zip external_llvm-bc38ca7321b4ca32580e397a9b7df970688560c0.tar.gz external_llvm-bc38ca7321b4ca32580e397a9b7df970688560c0.tar.bz2 |
llvm-mc: Accept .fill size of 8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79635 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/MC/AsmParser/directive_fill.s | 5 | ||||
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/MC/AsmParser/directive_fill.s b/test/MC/AsmParser/directive_fill.s index 95c7b46..60bd468 100644 --- a/test/MC/AsmParser/directive_fill.s +++ b/test/MC/AsmParser/directive_fill.s @@ -10,3 +10,8 @@ TEST0: # CHECK: .short 3 TEST1: .fill 2, 2, 3 + +# CHECK: TEST2: +# CHECK: .quad 4 +TEST2: + .fill 1, 8, 4 diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index c8eb7ec..f67bad1 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/tools/llvm-mc/AsmParser.cpp @@ -981,8 +981,8 @@ bool AsmParser::ParseDirectiveFill() { Lexer.Lex(); - if (FillSize != 1 && FillSize != 2 && FillSize != 4) - return TokError("invalid '.fill' size, expected 1, 2, or 4"); + if (FillSize != 1 && FillSize != 2 && FillSize != 4 && FillSize != 8) + return TokError("invalid '.fill' size, expected 1, 2, 4, or 8"); for (uint64_t i = 0, e = NumValues; i != e; ++i) Out.EmitValue(MCValue::get(FillExpr), FillSize); |