Test case for r132444.
authorAkira Hatanaka <ahatanak@gmail.com>
Thu, 2 Jun 2011 00:25:53 +0000 (00:25 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Thu, 2 Jun 2011 00:25:53 +0000 (00:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132445 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Mips/frame-address.ll [new file with mode: 0644]

diff --git a/test/CodeGen/Mips/frame-address.ll b/test/CodeGen/Mips/frame-address.ll
new file mode 100644 (file)
index 0000000..c48ce7e
--- /dev/null
@@ -0,0 +1,12 @@
+; RUN: llc -march=mipsel -mcpu=mips2 < %s | FileCheck %s
+
+declare i8* @llvm.frameaddress(i32) nounwind readnone
+
+define i8* @f() nounwind {
+entry:
+  %0 = call i8* @llvm.frameaddress(i32 0)
+  ret i8* %0
+
+; CHECK:   addu    $fp, $sp, $zero
+; CHECK:   addu    $2, $zero, $fp
+}