45 lines · plain
1; REQUIRES: x862; RUN: llvm-as %s -o %t.o3; RUN: ld.lld %t.o -o %t --lto-basic-block-sections=labels --lto-O0 2>&1 | FileCheck -check-prefix=LABELSWARN %s4; RUN: ld.lld %t.o -o %t --lto-basic-block-sections=all --lto-O0 --save-temps5; RUN: llvm-readobj -s %t.lto.o | FileCheck --check-prefix=SECNAMES %s6; RUN: ld.lld %t.o -o %t --lto-basic-block-sections=all --lto-unique-basic-block-section-names --lto-O0 --save-temps7; RUN: llvm-readobj -s %t.lto.o | FileCheck --check-prefix=SECNAMES-FULL %s8; RUN: llvm-nm %t | FileCheck --check-prefix=SYMS %s9 10; LABELSWARN: --lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead11 12; SECNAMES: Name: .text.foo {{.*}}13; SECNAMES: Name: .text.foo {{.*}}14; SECNAMES: Name: .text.foo {{.*}}15 16; SECNAMES-FULL: Name: .text.foo {{.*}}17; SECNAMES-FULL: Name: .text.foo.foo.__part.1 {{.*}}18; SECNAMES-FULL: Name: .text.foo.foo.__part.2 {{.*}}19 20; SYMS: foo21; SYMS: foo.__part.122; SYMS: foo.__part.223 24target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"25target triple = "x86_64-unknown-linux-gnu"26 27; Function Attrs: nounwind uwtable28define dso_local void @foo(i32 %b) local_unnamed_addr {29entry:30 %tobool.not = icmp eq i32 %b, 031 br i1 %tobool.not, label %if.end, label %if.then32 33if.then: ; preds = %entry34 tail call void @foo(i32 0)35 br label %if.end36 37if.end: ; preds = %entry, %if.then38 ret void39}40 41define void @_start() {42 call void @foo(i32 1)43 ret void44}45