mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
[PowerPC] Support .llong and fix .word
This adds support for the .llong PowerPC-specifc assembler directive. In doing so, I notices that .word is currently incorrect: it is supposed to define a 2-byte data element, not a 4-byte one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1177,7 +1177,9 @@ ParseInstruction(ParseInstructionInfo &Info, StringRef Name, SMLoc NameLoc,
|
||||
bool PPCAsmParser::ParseDirective(AsmToken DirectiveID) {
|
||||
StringRef IDVal = DirectiveID.getIdentifier();
|
||||
if (IDVal == ".word")
|
||||
return ParseDirectiveWord(4, DirectiveID.getLoc());
|
||||
return ParseDirectiveWord(2, DirectiveID.getLoc());
|
||||
if (IDVal == ".llong")
|
||||
return ParseDirectiveWord(8, DirectiveID.getLoc());
|
||||
if (IDVal == ".tc")
|
||||
return ParseDirectiveTC(isPPC64()? 8 : 4, DirectiveID.getLoc());
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user