1; RUN: llc -mtriple=aarch64-linux-gnu -o - %s | FileCheck %s
2
3; CHECK-LABEL: %bb.0:
4; CHECK-NOT: stp
5; CHECK-NOT: mov w{{[0-9]+}}, w0
6; CHECK-LABEL: %bb.1:
7; CHECK: stp x19
8; CHECK: mov w{{[0-9]+}}, w0
9
10define i32 @shrinkwrapme(i32 %paramAcrossCall, i32 %paramNotAcrossCall) {
11entry:
12  %cmp5 = icmp sgt i32 %paramNotAcrossCall, 0
13  br i1 %cmp5, label %CallBB, label %Exit
14CallBB:
15  %call = call i32 @fun()
16  %add = add i32 %call, %paramAcrossCall
17  ret i32 %add
18Exit:
19  ret i32 0
20}
21
22declare i32 @fun()
23