brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 182afd7 Raw
40 lines · plain
1; RUN: llc -mtriple=aarch64 -mattr=+execute-only %s -o - | FileCheck %s2 3$test_comdat = comdat any4 5; CHECK:     .section .text,"axy",@progbits,unique,06; CHECK-NOT: .section7; CHECK-NOT: .text8; CHECK:     .globl test_section_for_global9; CHECK:     .type test_section_for_global,@function10define void @test_section_for_global() {11entry:12  ret void13}14 15; CHECK:     .section .text.test_comdat,"axGy",@progbits,test_comdat,comdat,unique,016; CHECK-NOT: .section17; CHECK-NOT: .text18; CHECK:     .weak test_comdat19; CHECK:     .type test_comdat,@function20define linkonce_odr void @test_comdat() comdat {21entry:22  ret void23}24 25; CHECK:     .section .test,"axy",@progbits26; CHECK-NOT: .section27; CHECK-NOT: .text28; CHECK:     .globl test_explicit_section_for_global29; CHECK:     .type test_explicit_section_for_global,@function30define void @test_explicit_section_for_global() section ".test" {31entry:32  ret void33}34 35; CHECK:     .rodata,"a",@progbits36; CHECK-NOT: .section37; CHECK-NOT: .text38; CHECK:     .globl test_rodata39@test_rodata = constant i32 0, align 440