Reapply r143206, with fixes. Disallow physical register lifetimes
[oota-llvm.git] / test / CodeGen / Mips / cprestore.ll
1 ; RUN: llc -march=mipsel < %s | FileCheck %s
2
3 ; CHECK: .set macro
4 ; CHECK-NEXT: .cprestore
5 ; CHECK-NEXT: .set nomacro
6
7 %struct.S = type { [16384 x i32] }
8
9 define void @foo2() nounwind {
10 entry:
11   %s = alloca %struct.S, align 4
12   call void @foo1(%struct.S* byval %s)
13   ret void
14 }
15
16 declare void @foo1(%struct.S* byval)