aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/stacksize.ll
blob: 42021b2151862f08f87bf33b7b7f9457bcddf6d1 (plain)
1
2
3
4
5
6
7
8
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
}