mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
llvm-mc: Accept .word as a synonym for .short
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfc0f34e34
commit
1e840b2c61
@ -19,3 +19,8 @@ TEST2:
|
||||
# CHECK: .quad 9
|
||||
TEST3:
|
||||
.quad 9
|
||||
|
||||
# CHECK: TEST4:
|
||||
# CHECK: .short 3
|
||||
TEST4:
|
||||
.word 3
|
||||
|
@ -517,7 +517,7 @@ bool AsmParser::ParseStatement() {
|
||||
// FIXME: Target hooks for size? Also for "word", "hword".
|
||||
if (IDVal == ".byte")
|
||||
return ParseDirectiveValue(1);
|
||||
if (IDVal == ".short")
|
||||
if (IDVal == ".short" || IDVal == ".word")
|
||||
return ParseDirectiveValue(2);
|
||||
if (IDVal == ".long")
|
||||
return ParseDirectiveValue(4);
|
||||
|
Loading…
Reference in New Issue
Block a user