1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
llvm-mirror/test/CodeGen/X86/basic-block-sections-mir-print.ll
Sriraman Tallam c09ff709a2 Rename basic block sections options to be consistent.
D68049 created options for basic block sections: -fbasic-block-sections=,
-funique-basic-block-section-names. Rename options in llc and lld (--lto-)
to be consistent. Specifically,

+ Rename basicblock-sections to basic-block-sections
+ Rename unique-bb-section-names to unique-basic-block-section-names

Differential Revision: https://reviews.llvm.org/D84462
2020-07-31 11:50:55 -07:00

34 lines
1.1 KiB
LLVM

; Stop after bbsections-prepare and check MIR output for section type.
; RUN: echo '!_Z3foob' > %t
; RUN: echo '!!1' >> %t
; RUN: echo '!!2' >> %t
; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t -stop-after=bbsections-prepare | FileCheck %s -check-prefix=CHECK
@_ZTIb = external constant i8*
define dso_local i32 @_Z3foob(i1 zeroext %0) {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
%4 = zext i1 %0 to i8
store i8 %4, i8* %3, align 1
%5 = load i8, i8* %3, align 1
%6 = trunc i8 %5 to i1
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2, align 4
br label %9
8: ; preds = %1
store i32 0, i32* %2, align 4
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2, align 4
ret i32 %10
}
; CHECK: bb.0 (%ir-block.1, bbsections Cold):
; CHECK: bb.3 (%ir-block.9, bbsections Cold):
; CHECK: bb.1 (%ir-block.7)
; CHECK: bb.2 (%ir-block.8, bbsections 1):