xref: /llvm-project/llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test (revision f81ccb520927247b02708873567428d6988e2a07)
1# RUN: opt -module-summary %p/Inputs/main-mod.ll -o %T/main-mod.bc
2# RUN: opt -module-summary %p/Inputs/foo-mod.ll -o %T/foo-mod.bc
3# RUN: opt -module-summary %p/Inputs/bar-mod.ll -o %T/bar-mod.bc
4
5# REQUIRES: default_triple
6# UNSUPPORTED: target=powerpc64{{.*}}
7
8# RUN: llvm-lto -thinlto -o %T/main-foo-bar %T/main-mod.bc %T/foo-mod.bc %T/bar-mod.bc
9
10# RUN: LLJITWithThinLTOSummaries %T/main-foo-bar.thinlto.bc 2>&1 | FileCheck %s
11
12# CHECK: About to load module: {{.*}}/main-mod.bc
13# CHECK-DAG: About to load module: {{.*}}/foo-mod.bc
14# CHECK-DAG: About to load module: {{.*}}/bar-mod.bc
15# CHECK: 'main' finished with exit code: 0
16