From 5085681d9e7d30435cb01e43d80a1aaf37c2b7c1 Mon Sep 17 00:00:00 2001
From: Akira Hatanaka <ahatanaka@mips.com>
Date: Sat, 24 Dec 2011 03:05:43 +0000
Subject: [PATCH] Test case for r147232.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147233 91177308-0d34-0410-b5e6-96231b3b80d8
---
 test/CodeGen/Mips/mips64lea.ll | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 test/CodeGen/Mips/mips64lea.ll

diff --git a/test/CodeGen/Mips/mips64lea.ll b/test/CodeGen/Mips/mips64lea.ll
new file mode 100644
index 00000000000..54d504f9226
--- /dev/null
+++ b/test/CodeGen/Mips/mips64lea.ll
@@ -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*)
+