blob: 3e78c4623859c9b00ab325542e1275615f4ce87e [file] [log] [blame]
Cameron Zwarichcd4e0b52011-06-17 02:16:43 +00001; RUN: llc < %s -arm-tail-calls=1 | FileCheck %s
2target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
Evan Chengafff9412011-12-20 18:26:50 +00003target triple = "thumbv7-apple-ios"
Cameron Zwarichcd4e0b52011-06-17 02:16:43 +00004
5%struct.A = type <{ i16, i16, i32, i16, i16, i32, i16, [8 x %struct.B], [418 x i8], %struct.C }>
6%struct.B = type <{ i32, i16, i16 }>
7%struct.C = type { i16, i32, i16, i16 }
8
9; CHECK: f
10; CHECK: push {r1, r2, r3}
11; CHECK: add sp, #12
12; CHECK: b.w _puts
13
14define void @f(i8* %s, %struct.A* nocapture byval %a) nounwind optsize {
15entry:
16 %puts = tail call i32 @puts(i8* %s)
17 ret void
18}
19
20declare i32 @puts(i8* nocapture) nounwind