4 ; RUN: opt -module-summary %s -o %t1.o
5 ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o
7 ; First force single-threaded mode
8 ; RUN: rm -f %t31.lto.o %t32.lto.o
9 ; RUN: ld.lld -save-temps --thinlto-jobs=1 -shared %t1.o %t2.o -o %t3
10 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1
11 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2
13 ; Next force multi-threaded mode
14 ; RUN: rm -f %t31.lto.o %t32.lto.o
15 ; RUN: ld.lld -save-temps --thinlto-jobs=2 -shared %t1.o %t2.o -o %t3
16 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1
17 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2
19 ; Then check without --thinlto-jobs (which currently default to hardware_concurrency)
20 ; RUN: ld.lld -shared %t1.o %t2.o -o %t3
21 ; RUN: llvm-nm %t31.lto.o | FileCheck %s --check-prefix=NM1
22 ; RUN: llvm-nm %t32.lto.o | FileCheck %s --check-prefix=NM2
27 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
28 target triple = "x86_64-unknown-linux-gnu"