Test case for r159240.
authorAkira Hatanaka <ahatanaka@mips.com>
Wed, 27 Jun 2012 00:40:34 +0000 (00:40 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Wed, 27 Jun 2012 00:40:34 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159242 91177308-0d34-0410-b5e6-96231b3b80d8

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

diff --git a/test/CodeGen/Mips/stacksize.ll b/test/CodeGen/Mips/stacksize.ll
new file mode 100644 (file)
index 0000000..42021b2
--- /dev/null
@@ -0,0 +1,9 @@
+; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck %s 
+
+define i32 @foo(i32 %a) nounwind readnone {
+entry:
+; check that stack size is zero.
+; CHECK-NOT: addiu $sp, $sp
+  %add = add nsw i32 %a, 1
+  ret i32 %add
+}