brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 36e0527 Raw
28 lines · plain
1; RUN: llc -mtriple x86_64-linux-gnu -data-sections %s -o - | FileCheck %s --check-prefix=ELF2; RUN: llc -mtriple x86_64-linux-gnu -unique-section-names=0 -data-sections %s -o - | FileCheck %s --check-prefix=ELF-NOUNIQ3 4; RUN: llc -mtriple x86_64-windows-msvc -data-sections %s -o - | FileCheck %s --check-prefix=COFF-MSVC5 6; ELF: .section .data.hot.foo,7; ELF: .section .data.bar,8; ELF: .section .bss.unlikely.baz,9; ELF: .section .bss.quz,10 11; ELF-NOUNIQ: .section    .data.hot.,"aw",@progbits,unique,112; ELF-NOUNIQ: .section    .data,"aw",@progbits,unique,213; ELF-NOUNIQ: .section    .bss.unlikely.,"aw",@nobits,unique,314; ELF-NOUNIQ: .section    .bss,"aw",@nobits,unique,415 16; COFF-MSVC: .section .data,"dw",one_only,foo,unique,017; COFF-MSVC: .section .data,"dw",one_only,bar,unique,118; COFF-MSVC: .section .bss,"bw",one_only,baz,unique,219; COFF-MSVC: .section .bss,"bw",one_only,quz,unique,320 21@foo = global i32 1, !section_prefix !022@bar = global i32 223@baz = global i32 0, !section_prefix !124@quz = global i32 025 26!0 = !{!"section_prefix", !"hot"}27!1 = !{!"section_prefix", !"unlikely"}28