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=x86_64-pc-linux -basic-block-sections=all -unique-basic-block-section-names | FileCheck %s -check-prefix=LINUX-SECTIONS
3 ; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=all -unique-basic-block-section-names -split-machine-functions | FileCheck %s -check-prefix=LINUX-SECTIONS
4 ; 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
5 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -basic-block-sections=all -unique-basic-block-section-names | FileCheck %s -check-prefix=LINUX-SECTIONS
7 define void @_Z3bazb(i1 zeroext) nounwind {
8 %2 = alloca i8, align 1
10 store i8 %3, ptr %2, align 1
11 %4 = load i8, ptr %2, align 1
12 %5 = trunc i8 %4 to i1
13 br i1 %5, label %6, label %8
16 %7 = call i32 @_Z3barv()
20 %9 = call i32 @_Z3foov()
27 declare i32 @_Z3barv() #1
29 declare i32 @_Z3foov() #1
32 ; LINUX-SECTIONS: .section .text._Z3bazb,"ax",@progbits
33 ; LINUX-SECTIONS: _Z3bazb:
34 ; LINUX-SECTIONS: .section .text._Z3bazb.[[SECTION_LABEL_1:_Z3bazb.__part.[0-9]+]],"ax",@progbits
35 ; LINUX-SECTIONS: [[SECTION_LABEL_1]]:
36 ; LINUX-SECTIONS: .LBB_END0_1:
37 ; LINUX-SECTIONS-NEXT: .size [[SECTION_LABEL_1]], .LBB_END0_1-[[SECTION_LABEL_1]]
38 ; LINUX-SECTIONS: .section .text._Z3bazb.[[SECTION_LABEL_2:_Z3bazb.__part.[0-9]+]],"ax",@progbits
39 ; LINUX-SECTIONS: [[SECTION_LABEL_2]]:
40 ; LINUX-SECTIONS: .LBB_END0_2:
41 ; LINUX-SECTIONS-NEXT: .size [[SECTION_LABEL_2]], .LBB_END0_2-[[SECTION_LABEL_2]]