[llvm-commits] [llvm] r147005 - in /llvm/trunk: lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp test/CodeGen/Mips/mips64directive.ll
Akira Hatanaka
ahatanaka at mips.com
Tue Dec 20 14:52:19 PST 2011
Author: ahatanak
Date: Tue Dec 20 16:52:19 2011
New Revision: 147005
URL: http://llvm.org/viewvc/llvm-project?rev=147005&view=rev
Log:
64-bit data directive.
Added:
llvm/trunk/test/CodeGen/Mips/mips64directive.ll
Modified:
llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp?rev=147005&r1=147004&r2=147005&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp Tue Dec 20 16:52:19 2011
@@ -27,7 +27,7 @@
AlignmentIsInBytes = false;
Data16bitsDirective = "\t.2byte\t";
Data32bitsDirective = "\t.4byte\t";
- Data64bitsDirective = 0;
+ Data64bitsDirective = "\t.8byte\t";
PrivateGlobalPrefix = "$";
CommentString = "#";
ZeroDirective = "\t.space\t";
Added: llvm/trunk/test/CodeGen/Mips/mips64directive.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/mips64directive.ll?rev=147005&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/mips64directive.ll (added)
+++ llvm/trunk/test/CodeGen/Mips/mips64directive.ll Tue Dec 20 16:52:19 2011
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=mips64el -mcpu=mips64 -mattr=n64 | FileCheck %s
+
+ at gl = global i64 1250999896321, align 8
+
+; CHECK: 8byte
+define i64 @foo1() nounwind readonly {
+entry:
+ %0 = load i64* @gl, align 8
+ ret i64 %0
+}
+
More information about the llvm-commits
mailing list