diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-06-27 00:40:34 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-06-27 00:40:34 +0000 |
commit | e3e12450e61a2b279ec8186a2daa36011dc671aa (patch) | |
tree | a3fb64de4390cd53130068d53b20951b09911640 /test/CodeGen/Mips/stacksize.ll | |
parent | eb2dea2c3c94bb3edbf3ff0a018f6ca58e9475d9 (diff) |
Test case for r159240.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/stacksize.ll')
-rw-r--r-- | test/CodeGen/Mips/stacksize.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/stacksize.ll b/test/CodeGen/Mips/stacksize.ll new file mode 100644 index 0000000000..42021b2151 --- /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 +} |