Test case for r147232.
authorAkira Hatanaka <ahatanaka@mips.com>
Sat, 24 Dec 2011 03:05:43 +0000 (03:05 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Sat, 24 Dec 2011 03:05:43 +0000 (03:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147233 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Mips/mips64lea.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Mips/mips64lea.ll b/test/CodeGen/Mips/mips64lea.ll
new file mode 100644 (file)
index 0000000..54d504f
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s
+
+define void @foo3() nounwind {
+entry:
+; CHECK: daddiu ${{[0-9]+}}, $sp
+  %a = alloca i32, align 4
+  call void @foo1(i32* %a) nounwind
+  ret void
+}
+
+declare void @foo1(i32*)
+