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-directjumps.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

39 lines
1.3 KiB
LLVM

; 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
; 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
define void @_Z3bazb(i1 zeroext) {
%2 = alloca i8, align 1
%3 = zext i1 %0 to i8
store i8 %3, i8* %2, align 1
%4 = load i8, i8* %2, align 1
%5 = trunc i8 %4 to i1
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = call i32 @_Z3barv()
%8 = trunc i32 %7 to i1
br i1 %8, label %11, label %9
9: ; preds = %1
%10 = call i32 @_Z3foov()
br label %11
11: ; preds = %9, %6
ret void
}
declare i32 @_Z3barv() #1
declare i32 @_Z3foov() #1
; LINUX-SECTIONS: .section .text._Z3bazb,"ax",@progbits
; LINUX-SECTIONS: _Z3bazb:
; LINUX-SECTIONS: jmp _Z3bazb.1
; LINUX-SECTIONS: .section .text._Z3bazb._Z3bazb.1,"ax",@progbits
; LINUX-SECTIONS: _Z3bazb.1:
; LINUX-SECTIONS: jmp _Z3bazb.2
; LINUX-SECTIONS: .section .text._Z3bazb._Z3bazb.2,"ax",@progbits
; LINUX-SECTIONS: _Z3bazb.2:
; LINUX-SECTIONS: jmp _Z3bazb.3