xref: /aosp_15_r20/external/llvm/test/LTO/X86/runtime-library.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; runtime library implementations should be added to llvm.compiler.used
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as <%s >%t1
3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-lto -o %t2 %t1
4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm -no-sort %t2 | FileCheck %s -check-prefix=KEEP -check-prefix=LOSE
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-darwin9"
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker; KEEP-LABEL: _puts
9*9880d681SAndroid Build Coastguard Workerdefine void @puts() {
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; KEEP-LABEL: ___divti3
14*9880d681SAndroid Build Coastguard Workerdefine void @__divti3() {
15*9880d681SAndroid Build Coastguard Worker  ret void
16*9880d681SAndroid Build Coastguard Worker}
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker; KEEP-LABEL: _memset
19*9880d681SAndroid Build Coastguard Workerdefine void @memset() {
20*9880d681SAndroid Build Coastguard Worker  ret void
21*9880d681SAndroid Build Coastguard Worker}
22*9880d681SAndroid Build Coastguard Worker
23*9880d681SAndroid Build Coastguard Worker; LOSE-NOT: _myprintf
24*9880d681SAndroid Build Coastguard Workerdefine void @myprintf() {
25*9880d681SAndroid Build Coastguard Worker  ret void
26*9880d681SAndroid Build Coastguard Worker}
27*9880d681SAndroid Build Coastguard Worker
28