1; RUN: llc < %s | FileCheck %s
2
3target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
4target triple = "thumbv7m-arm-none-eabi"
5
6; CHECK-LABEL: f:
7; CHECK: blx r
8; CHECK: blx r
9; CHECK: blx r
10define void @f() minsize optsize {
11entry:
12  call void @g(i32 45, i32 66)
13  call void @g(i32 88, i32 32)
14  call void @g(i32 55, i32 33)
15  ret void
16}
17
18; CHECK-LABEL: h:
19; CHECK: bl g
20; CHECK: bl g
21define void @h() minsize optsize {
22entry:
23  call void @g(i32 45, i32 66)
24  call void @g(i32 88, i32 32)
25  ret void
26}
27
28declare void @g(i32,i32)
29