brintos

brintos / llvm-project-archived public Read only

0
0
Text · 555 B · 806d4d5 Raw
20 lines · plain
1; Test mixed-mode LTO (mix of regular and thin LTO objects)2; RUN: opt %s -o %t.o3; RUN: opt -module-summary %p/Inputs/mixed_lto.ll -o %t2.o4 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.o10; RUN: llvm-nm %t3.o | FileCheck %s11 12; CHECK-DAG: T main13; CHECK-DAG: T g14 15target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"16target triple = "x86_64-unknown-linux-gnu"17define i32 @g() {18  ret i32 019}20