aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commitff16df71f50231c79c379a146dc55b4d6867cbd9 (patch)
treef10fb5043fcbfeb17e088715c5e23d31d4078783 /lib/Target
parent11c29bafd584da2e39ee5d885ca2d53035bc1372 (diff)
downloadexternal_llvm-ff16df71f50231c79c379a146dc55b4d6867cbd9.zip
external_llvm-ff16df71f50231c79c379a146dc55b4d6867cbd9.tar.gz
external_llvm-ff16df71f50231c79c379a146dc55b4d6867cbd9.tar.bz2
[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
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
index af91ffb..32cf373d 100644
--- a/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
+++ b/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;