1 ; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=all -unique-basic-block-section-names | FileCheck %s -check-prefix=LINUX-SECTIONS
2 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -function-sections -basic-block-sections=all -unique-basic-block-section-names | FileCheck %s -check-prefix=LINUX-SECTIONS
4 define void @_Z3bazb(i1 zeroext) {
5 %2 = alloca i8, align 1
7 store i8 %3, ptr %2, align 1
8 %4 = load i8, ptr %2, align 1
10 br i1 %5, label %6, label %9
13 %7 = call i32 @_Z3barv()
14 %8 = trunc i32 %7 to i1
15 br i1 %8, label %11, label %9
18 %10 = call i32 @_Z3foov()
25 declare i32 @_Z3barv() #1
27 declare i32 @_Z3foov() #1
30 ; LINUX-SECTIONS: .section .text._Z3bazb,"ax",@progbits
31 ; LINUX-SECTIONS: _Z3bazb:
32 ; LINUX-SECTIONS: jmp _Z3bazb.__part.1
33 ; LINUX-SECTIONS: .section .text._Z3bazb._Z3bazb.__part.1,"ax",@progbits
34 ; LINUX-SECTIONS: _Z3bazb.__part.1:
35 ; LINUX-SECTIONS: jmp _Z3bazb.__part.2
36 ; LINUX-SECTIONS: .section .text._Z3bazb._Z3bazb.__part.2,"ax",@progbits
37 ; LINUX-SECTIONS: _Z3bazb.__part.2:
38 ; LINUX-SECTIONS: jmp _Z3bazb.__part.3