view test/CodeGen/Mips/stacksize.ll @ 117:facf19d07cd9

check EHStack on EmitCall (CbC goto)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 24 Aug 2016 20:10:41 +0900
parents 95c75e76d11b
children
line wrap: on
line source

; 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
}