diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:03:39 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:03:39 +0000 |
| commit | d2d3ebb81992e107edf95c1c136d7a342d9b1418 (patch) | |
| tree | bb1af8fff2b1400cf240e3b2532a1e5d22a121da /test/ELF/lto/thinlto.ll | |
| parent | 16787c9ce0b96aaa669d7fab3a495916b35ce758 (diff) | |
Vendor import of lld trunk r300422:vendor/lld/lld-trunk-r300422
Notes
svn path=/vendor/lld/dist/; revision=317025
svn path=/vendor/lld/lld-trunk-r300422/; revision=317026; tag=vendor/lld/lld-trunk-r300422
Diffstat (limited to 'test/ELF/lto/thinlto.ll')
| -rw-r--r-- | test/ELF/lto/thinlto.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/ELF/lto/thinlto.ll b/test/ELF/lto/thinlto.ll index 160c83a18abf..2036c554a76d 100644 --- a/test/ELF/lto/thinlto.ll +++ b/test/ELF/lto/thinlto.ll @@ -3,19 +3,20 @@ ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o ; First force single-threaded mode +; RUN: rm -f %t.lto.o %t1.lto.o ; RUN: ld.lld -save-temps --thinlto-jobs=1 -shared %t.o %t2.o -o %t -; RUN: llvm-nm %t0.lto.o | FileCheck %s --check-prefix=NM1-SINGLE -; RUN: llvm-nm %t1.lto.o | FileCheck %s --check-prefix=NM2-SINGLE - -; NM1-SINGLE: T f -; NM2-SINGLE: T g +; RUN: llvm-nm %t.lto.o | FileCheck %s --check-prefix=NM1 +; RUN: llvm-nm %t1.lto.o | FileCheck %s --check-prefix=NM2 ; Next force multi-threaded mode +; RUN: rm -f %t2.lto.o %t21.lto.o ; RUN: ld.lld -save-temps --thinlto-jobs=2 -shared %t.o %t2.o -o %t2 -; RUN: llvm-nm %t20.lto.o | FileCheck %s --check-prefix=NM1 +; RUN: llvm-nm %t2.lto.o | FileCheck %s --check-prefix=NM1 ; RUN: llvm-nm %t21.lto.o | FileCheck %s --check-prefix=NM2 ; NM1: T f +; NM1-NOT: U g + ; NM2: T g ; Then check without --thinlto-jobs (which currently default to hardware_concurrency) |
