1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; rdar://7268481 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdefine void @t(i8* %a, ...) nounwind { 5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: t: 6*9880d681SAndroid Build Coastguard Worker; CHECK: pop {[[POP_REG:r[0-3]]]} 7*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: add sp, #12 8*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: bx [[POP_REG]] 9*9880d681SAndroid Build Coastguard Workerentry: 10*9880d681SAndroid Build Coastguard Worker %a.addr = alloca i8, i32 4 11*9880d681SAndroid Build Coastguard Worker call void @llvm.va_start(i8* %a.addr) 12*9880d681SAndroid Build Coastguard Worker ret void 13*9880d681SAndroid Build Coastguard Worker} 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.va_start(i8*) nounwind 16