Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / X86 / elf-separate-named-sections.ll
blob18efc20aa94584ae2bf30c15e4de891c3523cedf
1 ; Test that global values with explicit sections are placed into unique sections.
3 ; RUN: llc < %s | FileCheck %s
4 ; RUN: llc -separate-named-sections < %s | FileCheck %s --check-prefix=SEPARATE
5 target triple="x86_64-unknown-unknown-elf"
7 define i32 @f() section "custom_text" {
8     entry:
9     ret i32 0
12 define i32 @g() section "custom_text" {
13     entry:
14     ret i32 0
17 ; CHECK: .section custom_text,"ax",@progbits{{$}}
18 ; CHECK: f:
19 ; CHECK: g:
21 ; SEPARATE: .section custom_text,"ax",@progbits,unique,1{{$}}
22 ; SEPARATE: f:
23 ; SEPARATE: .section custom_text,"ax",@progbits,unique,2{{$}}
24 ; SEPARATE: g:
26 @i = global i32 0, section "custom_data", align 8
27 @j = global i32 0, section "custom_data", align 8
29 ; CHECK: .section custom_data,"aw",@progbits{{$}}
30 ; CHECK: i:
31 ; CHECK: j:
33 ; SEPARATE: .section custom_data,"aw",@progbits,unique,3{{$}}
34 ; SEPARATE: i:
35 ; SEPARATE: .section custom_data,"aw",@progbits,unique,4{{$}}
36 ; SEPARATE: j: