1 ; Stop after bbsections-prepare and check MIR output for section type.
2 ; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=labels -stop-after=bbsections-prepare | FileCheck %s -check-prefix=BBLABELS
3 ; RUN: echo '!_Z3foob' > %t
4 ; RUN: echo '!!1' >> %t
5 ; RUN: echo '!!2' >> %t
6 ; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t -stop-after=bbsections-prepare | FileCheck %s -check-prefix=BBSECTIONS
8 @_ZTIb = external constant ptr
9 define dso_local i32 @_Z3foob(i1 zeroext %0) {
10 %2 = alloca i32, align 4
11 %3 = alloca i8, align 1
13 store i8 %4, ptr %3, align 1
14 %5 = load i8, ptr %3, align 1
15 %6 = trunc i8 %5 to i1
16 br i1 %6, label %7, label %8
19 store i32 1, ptr %2, align 4
23 store i32 0, ptr %2, align 4
27 %10 = load i32, ptr %2, align 4
31 ; BBSECTIONS: bb.0 (%ir-block.1, bbsections Cold, bb_id 0):
32 ; BBSECTIONS: bb.3 (%ir-block.9, bbsections Cold, bb_id 3):
33 ; BBSECTIONS: bb.1 (%ir-block.7, bb_id 1)
34 ; BBSECTIONS: bb.2 (%ir-block.8, bbsections 1, bb_id 2):
36 ; BBLABELS: bb.0 (%ir-block.1, bb_id 0):
37 ; BBLABELS: bb.1 (%ir-block.7, bb_id 1):
38 ; BBLABELS: bb.2 (%ir-block.8, bb_id 2):
39 ; BBLABELS: bb.3 (%ir-block.9, bb_id 3):