summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-12-20 22:52:19 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-12-20 22:52:19 +0000
commitcf10f08825ff735c445286f47fcf19c98ca1e33e (patch)
treed2e4fcb5cdd88e44d7c6291d767a2012adbd22ea
parent494fdf1499bfa970f2ed938007acc69bfcc03118 (diff)
downloadbcm5719-llvm-cf10f08825ff735c445286f47fcf19c98ca1e33e.tar.gz
bcm5719-llvm-cf10f08825ff735c445286f47fcf19c98ca1e33e.zip
64-bit data directive.
llvm-svn: 147005
-rw-r--r--llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp2
-rw-r--r--llvm/test/CodeGen/Mips/mips64directive.ll11
2 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
index c72af7d8260..4f0ff2a3c66 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
@@ -27,7 +27,7 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
AlignmentIsInBytes = false;
Data16bitsDirective = "\t.2byte\t";
Data32bitsDirective = "\t.4byte\t";
- Data64bitsDirective = 0;
+ Data64bitsDirective = "\t.8byte\t";
PrivateGlobalPrefix = "$";
CommentString = "#";
ZeroDirective = "\t.space\t";
diff --git a/llvm/test/CodeGen/Mips/mips64directive.ll b/llvm/test/CodeGen/Mips/mips64directive.ll
new file mode 100644
index 00000000000..fa81b729e9c
--- /dev/null
+++ b/llvm/test/CodeGen/Mips/mips64directive.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=mips64el -mcpu=mips64 -mattr=n64 | FileCheck %s
+
+@gl = global i64 1250999896321, align 8
+
+; CHECK: 8byte
+define i64 @foo1() nounwind readonly {
+entry:
+ %0 = load i64* @gl, align 8
+ ret i64 %0
+}
+
OpenPOWER on IntegriCloud