| 1 |
; Test mixed-mode LTO (mix of regular and thin LTO objects) |
| 2 |
; RUN: opt %s -o %t.o |
| 3 |
; RUN: opt -module-summary %p/Inputs/mixed_lto.ll -o %t2.o |
| 4 |
|
| 5 |
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 6 |
; RUN: -shared \ |
| 7 |
; RUN: --plugin-opt=thinlto \ |
| 8 |
; RUN: --plugin-opt=-import-instr-limit=0 \ |
| 9 |
; RUN: -o %t3.o %t2.o %t.o |
| 10 |
; RUN: llvm-nm %t3.o | FileCheck %s |
| 11 |
|
| 12 |
; CHECK-DAG: T main |
| 13 |
; CHECK-DAG: T g |
| 14 |
|
| 15 |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 16 |
target triple = "x86_64-unknown-linux-gnu" |
| 17 |
define i32 @g() { |
| 18 |
ret i32 0 |
| 19 |
} |