mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
llvm-mc: Accept .fill size of 8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25f1aa04ff
commit
bc38ca7321
@ -10,3 +10,8 @@ TEST0:
|
||||
# CHECK: .short 3
|
||||
TEST1:
|
||||
.fill 2, 2, 3
|
||||
|
||||
# CHECK: TEST2:
|
||||
# CHECK: .quad 4
|
||||
TEST2:
|
||||
.fill 1, 8, 4
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user