brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 50d9606 Raw
36 lines · plain
1; REQUIRES: x862; RUN: opt -thinlto-bc -thinlto-split-lto-unit -unified-lto %s -o %t0.o3; RUN: opt -thinlto-bc -thinlto-split-lto-unit %s -o %t1.o4; RUN: ld.lld --lto=full %t0.o -o %t05; RUN: llvm-readelf -s %t0 | FileCheck %s --check-prefix=FULL6; RUN: ld.lld --lto=thin %t0.o -o %t07; RUN: llvm-readelf -s %t0 | FileCheck %s --check-prefix=THIN8; RUN: ld.lld --lto=default %t0.o -o %t09; RUN: llvm-readelf -s %t0 | FileCheck %s --check-prefix=THIN10; RUN: ld.lld --lto=default %t1.o -o %t111; RUN: llvm-readelf -s %t1 | FileCheck %s --check-prefix=THIN12; RUN: ld.lld %t0.o -o %t0 2>&1 | count 013; RUN: llvm-readelf -s %t0 | FileCheck %s --check-prefix=THIN14; RUN: not ld.lld --lto=unknown %t1.o -o /dev/null 2>&1 | \15; RUN:   FileCheck --implicit-check-not=error: --check-prefix=ERR %s16; ERR: error: unknown LTO mode: unknown17 18; FULL:      Symbol table '.symtab' contains 3 entries:19; FULL-NEXT: Num:    Value          Size Type    Bind   Vis       Ndx Name20; FULL-NEXT: 0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT   UND21; FULL-NEXT: 1: 0000000000000000     0 FILE    LOCAL  DEFAULT   ABS ld-temp.o22; FULL-NEXT: 2: 0000000000201120     1 FUNC    GLOBAL DEFAULT     1 _start23 24; THIN:      Symbol table '.symtab' contains 3 entries:25; THIN-NEXT: Num:    Value          Size Type    Bind   Vis       Ndx Name26; THIN-NEXT: 0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT   UND27; THIN-NEXT: 1: 0000000000000000     0 FILE    LOCAL  DEFAULT   ABS unified-lto.ll28; THIN-NEXT: 2: 0000000000201120     1 FUNC    GLOBAL DEFAULT     1 _start29 30target triple = "x86_64-unknown-linux-gnu"31target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"32 33define void @_start() {34  ret void35}36