aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/cprestore.ll
blob: 64ffc60e8453c06f96979489eea7b6803e6b7b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -march=mipsel < %s | FileCheck %s

; byval is currently unsupported.
; XFAIL: *

; CHECK: .set macro
; CHECK-NEXT: .cprestore
; CHECK-NEXT: .set nomacro

%struct.S = type { [16384 x i32] }

define void @foo2() nounwind {
entry:
  %s = alloca %struct.S, align 4
  call void @foo1(%struct.S* byval %s)
  ret void
}

declare void @foo1(%struct.S* byval)