[AArch64,ELF] Restrict MOVZ/MOVK to non-PIC large code model (#70178)
[llvm-project.git] / llvm / test / CodeGen / X86 / basic-block-sections.ll
blob8e50416554a0a5ceb8b3218f64457f19fc42e3e7
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
9   %3 = zext i1 %0 to i8
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
15 6:                                                ; preds = %1
16   %7 = call i32 @_Z3barv()
17   br label %10
19 8:                                                ; preds = %1
20   %9 = call i32 @_Z3foov()
21   br label %10
23 10:                                               ; preds = %8, %6
24   ret void
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]]