From: Akira Hatanaka Date: Wed, 27 Jun 2012 00:40:34 +0000 (+0000) Subject: Test case for r159240. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3e12450e61a2b279ec8186a2daa36011dc671aa;p=oota-llvm.git Test case for r159240. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159242 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/Mips/stacksize.ll b/test/CodeGen/Mips/stacksize.ll new file mode 100644 index 00000000000..42021b21518 --- /dev/null +++ b/test/CodeGen/Mips/stacksize.ll @@ -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 +}