xref: /aosp_15_r20/external/llvm/test/CodeGen/Thumb/pop.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
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