Introduce llvm/test/LTO/X86. LTO tests may be assumed as target-specific.
[oota-llvm.git] / test / LTO / X86 / runtime-library.ll
1 ; runtime library implementations should be added to llvm.compiler.used
2 ; RUN: llvm-as <%s >%t1
3 ; RUN: llvm-lto -o %t2 %t1
4 ; RUN: llvm-nm -no-sort %t2 | FileCheck %s -check-prefix=KEEP -check-prefix=LOSE
5
6 target triple = "x86_64-apple-darwin9"
7
8 ; KEEP-LABEL: _puts
9 define void @puts() {
10   ret void
11 }
12
13 ; KEEP-LABEL: ___divti3
14 define void @__divti3() {
15   ret void
16 }
17
18 ; KEEP-LABEL: _memset
19 define void @memset() {
20   ret void
21 }
22
23 ; LOSE-NOT: _myprintf
24 define void @myprintf() {
25   ret void
26 }
27