summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/AsmParser
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-09 07:59:25 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-07-09 07:59:25 +0000
commit78a5a116a0ff842a8b960f3e628c45d3e335daa8 (patch)
tree2d82beebe27b2a1f7643ef2feb695fff45c06e7e /llvm/lib/Target/PowerPC/AsmParser
parentbafa537eb741c7d30dc94ea332bfef90f48ce839 (diff)
downloadbcm5719-llvm-78a5a116a0ff842a8b960f3e628c45d3e335daa8.tar.gz
bcm5719-llvm-78a5a116a0ff842a8b960f3e628c45d3e335daa8.zip
[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. llvm-svn: 185911
Diffstat (limited to 'llvm/lib/Target/PowerPC/AsmParser')
-rw-r--r--llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
index af91ffbd232..32cf373dba8 100644
--- a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
+++ b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
@@ -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;
OpenPOWER on IntegriCloud