1 ; Generate summary sections
2 ; RUN: opt -module-summary %s -o %t1.o
3 ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o
5 ; RUN: rm -f %t1.o.4.opt.bc
6 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
8 ; RUN: --plugin-opt=thinlto \
9 ; RUN: --plugin-opt=save-temps \
10 ; RUN: --plugin-opt=sample-profile=%p/Inputs/afdo.prof \
11 ; RUN: --plugin-opt=jobs=1 \
12 ; RUN: -shared %t1.o %t2.o -o %t3
13 ; RUN: opt -S %t1.o.4.opt.bc | FileCheck %s
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16 target triple = "x86_64-unknown-linux-gnu"
18 ; CHECK: ProfileSummary