1; RUN: llc -mtriple=arm64-apple-ios -mcpu=cyclone < %s | FileCheck %s
2; rdar://12254953
3
4define i32 @t(i32 %a, i32 %b, i32 %c, i32 %d) nounwind ssp {
5entry:
6; CHECK-LABEL: t:
7; CHECK: mov [[REG2:x[0-9]+]], x3
8; CHECK: mov [[REG1:x[0-9]+]], x2
9; CHECK: mov x0, x2
10; CHECK: mov x1, x3
11; CHECK: bl _foo
12; CHECK: mov x0, [[REG1]]
13; CHECK: mov x1, [[REG2]]
14  %call = call i32 @foo(i32 %c, i32 %d) nounwind
15  %call1 = call i32 @foo(i32 %c, i32 %d) nounwind
16  unreachable
17}
18
19declare i32 @foo(i32, i32)
20