llvm-for-llvmta/test/CodeGen/Mips/stacksize.ll

10 lines
228 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; 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
}