brintos

brintos / llvm-project-archived public Read only

0
0
Text · 967 B · 0c6a151 Raw
34 lines · plain
1; Generate summary sections2; RUN: opt -module-summary %s -o %t.o3; RUN: opt -module-summary %p/Inputs/thinlto_archive1.ll -o %t2.o4; RUN: opt -module-summary %p/Inputs/thinlto_archive2.ll -o %t3.o5 6; Generate the static library7; RUN: llvm-ar --format=gnu r %t.a %t2.o %t3.o8 9; Test importing from archive library via gold, using jobs=1 to ensure10; output messages are not interleaved.11; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \12; RUN:    -m elf_x86_64 \13; RUN:    --plugin-opt=thinlto \14; RUN:    --plugin-opt=-print-imports \15; RUN:    --plugin-opt=jobs=1 \16; RUN:    -shared %t.o %t.a -o %t4 2>&1 | FileCheck %s17; RUN: llvm-nm %t4 | FileCheck %s --check-prefix=NM18 19target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"20target triple = "x86_64-unknown-linux-gnu"21 22; CHECK-DAG: Import g23declare void @g(...)24; CHECK-DAG: Import h25declare void @h(...)26 27; NM: T f28define void @f() {29entry:30  call void (...) @g()31  call void (...) @h()32  ret void33}34