Mercurial > hg > CbC > CbC_llvm
comparison test/ThinLTO/X86/funcimport2.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | 3a76565eade5 |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
1 ; Do setup work for all below tests: generate bitcode and combined index | 1 ; Do setup work for all below tests: generate bitcode and combined index |
2 ; RUN: opt -module-summary %s -o %t1.bc | 2 ; RUN: opt -module-summary %s -o %t1.bc |
3 ; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc | 3 ; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc |
4 | 4 |
5 ; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \ | 5 ; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ |
6 ; RUN: -r=%t1.bc,_foo,plx \ | 6 ; RUN: -r=%t1.bc,_foo,plx \ |
7 ; RUN: -r=%t2.bc,_main,plx \ | 7 ; RUN: -r=%t2.bc,_main,plx \ |
8 ; RUN: -r=%t2.bc,_foo,l | 8 ; RUN: -r=%t2.bc,_foo,l |
9 ; RUN: llvm-dis %t.o.1.3.import.bc -o - | FileCheck %s | 9 ; RUN: llvm-dis %t.o.1.3.import.bc -o - | FileCheck %s |
10 ; CHECK: define available_externally void @foo() | 10 ; CHECK: define available_externally void @foo() |
11 | 11 |
12 ; We shouldn't do any importing at -O0 | 12 ; We shouldn't do any importing at -O0 |
13 ; rm -f %t.o.1.3.import.bc | 13 ; rm -f %t.o.1.3.import.bc |
14 ; RUN: llvm-lto2 %t1.bc %t2.bc -o %t.o -save-temps \ | 14 ; RUN: llvm-lto2 run %t1.bc %t2.bc -o %t.o -save-temps \ |
15 ; RUN: -O0 \ | 15 ; RUN: -O0 \ |
16 ; RUN: -r=%t1.bc,_foo,plx \ | 16 ; RUN: -r=%t1.bc,_foo,plx \ |
17 ; RUN: -r=%t2.bc,_main,plx \ | 17 ; RUN: -r=%t2.bc,_main,plx \ |
18 ; RUN: -r=%t2.bc,_foo,l | 18 ; RUN: -r=%t2.bc,_foo,l |
19 ; RUN: llvm-dis %t.o.1.3.import.bc -o - | FileCheck %s --check-prefix=CHECKO0 | 19 ; RUN: llvm-dis %t.o.1.3.import.bc -o - | FileCheck %s --check-prefix=CHECKO0 |