1 ; RUN: llc -O0 %s -o - | FileCheck %s
2 ; RUN: llc -O0 %s -o - | FileCheck %s
3 ; RUN: llc < %s -stop-after=prologepilog | FileCheck %s --check-prefix=PEI
5 target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
6 target triple = "i686-pc-linux"
8 ; Function Attrs: noinline nounwind
9 define i32 @foo(i32 %i, i32 %j, i32 %k, i32 %l, i32 %m) #0 {
13 ; CHECK-NEXT: .cfi_def_cfa %esp, 4
16 ; PEI-LABEL: name: foo
17 ; PEI: $ebp = frame-destroy POP32r implicit-def $esp, implicit $esp
18 ; PEI-NEXT: frame-destroy CFI_INSTRUCTION def_cfa $esp, 4
19 ; PEI-NEXT: RET 0, killed $eax
22 %i.addr = alloca i32, align 4
23 %j.addr = alloca i32, align 4
24 %k.addr = alloca i32, align 4
25 %l.addr = alloca i32, align 4
26 %m.addr = alloca i32, align 4
27 store i32 %i, ptr %i.addr, align 4
28 store i32 %j, ptr %j.addr, align 4
29 store i32 %k, ptr %k.addr, align 4
30 store i32 %l, ptr %l.addr, align 4
31 store i32 %m, ptr %m.addr, align 4
35 attributes #0 = { "frame-pointer"="all" }