2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: ld.lld %t.o -o %t --lto-basic-block-sections=all --lto-O0 --save-temps
4 ; RUN: llvm-readobj -s %t.lto.o | FileCheck --check-prefix=SECNAMES %s
5 ; RUN: ld.lld %t.o -o %t --lto-basic-block-sections=all --lto-unique-basic-block-section-names --lto-O0 --save-temps
6 ; RUN: llvm-readobj -s %t.lto.o | FileCheck --check-prefix=SECNAMES-FULL %s
7 ; RUN: llvm-nm %t | FileCheck --check-prefix=SYMS %s
9 ; SECNAMES: Name: .text.foo {{.*}}
10 ; SECNAMES: Name: .text.foo {{.*}}
11 ; SECNAMES: Name: .text.foo {{.*}}
13 ; SECNAMES-FULL: Name: .text.foo {{.*}}
14 ; SECNAMES-FULL: Name: .text.foo.foo.__part.1 {{.*}}
15 ; SECNAMES-FULL: Name: .text.foo.foo.__part.2 {{.*}}
21 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
22 target triple = "x86_64-unknown-linux-gnu"
24 ; Function Attrs: nounwind uwtable
25 define dso_local void @foo(i32 %b) local_unnamed_addr {
27 %tobool.not = icmp eq i32 %b, 0
28 br i1 %tobool.not, label %if.end, label %if.then
30 if.then: ; preds = %entry
31 tail call void @foo(i32 0)
34 if.end: ; preds = %entry, %if.then
38 define void @_start() {