15a7056faSEaswaran Raman; REQUIRES: x86-registered-target
25a7056faSEaswaran Raman; RUN: opt -module-summary %s -o %t.o
35a7056faSEaswaran Raman
45a7056faSEaswaran Raman; Ensure synthetic entry count flag is not set on distributed index
55a7056faSEaswaran Raman; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \
65a7056faSEaswaran Raman; RUN:		-r %t.o,glob,plx -compute-dead=false
75a7056faSEaswaran Raman; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=NOSYNTHETIC
8*80dc0661SWei Wang; NOSYNTHETIC: <FLAGS op0=96/>
95a7056faSEaswaran Raman
105a7056faSEaswaran Raman; Ensure synthetic entry count flag is set on distributed index
115a7056faSEaswaran Raman; when option used to enable synthetic count propagation
125a7056faSEaswaran Raman; RUN: llvm-lto2 run %t.o -o %t.out -thinlto-distributed-indexes \
135a7056faSEaswaran Raman; RUN:		-r %t.o,glob,plx -thinlto-synthesize-entry-counts \
145a7056faSEaswaran Raman; RUN:          -compute-dead=false
155a7056faSEaswaran Raman; RUN: llvm-bcanalyzer -dump %t.o.thinlto.bc | FileCheck %s --check-prefix=HASSYNTHETIC
16*80dc0661SWei Wang; HASSYNTHETIC: <FLAGS op0=100/>
175a7056faSEaswaran Raman
185a7056faSEaswaran Ramantarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
195a7056faSEaswaran Ramantarget triple = "x86_64-unknown-linux-gnu"
205a7056faSEaswaran Raman
215a7056faSEaswaran Raman@glob = global i32 0
22