xref: /llvm-project/llvm/test/CodeGen/ARM/execute-only-section.ll (revision 015dc2094ef662bc7043a974b1f4738c89e8080e)
1; RUN: llc < %s -mtriple=thumbv7m -mattr=+execute-only %s -o - | FileCheck %s
2; RUN: llc < %s -mtriple=thumbv8m.base -mattr=+execute-only %s -o - | FileCheck %s
3; RUN: llc < %s -mtriple=thumbv8m.main -mattr=+execute-only %s -o - | FileCheck %s
4
5; CHECK:     .section .text,"axy",%progbits,unique,0
6; CHECK-NOT: .section
7; CHECK-NOT: .text
8; CHECK:     .globl test_SectionForGlobal
9; CHECK:     .type test_SectionForGlobal,%function
10define void @test_SectionForGlobal() {
11entry:
12  ret void
13}
14
15; CHECK:     .section .test,"axy",%progbits
16; CHECK-NOT: .section
17; CHECK-NOT: .text
18; CHECK:     .globl test_ExplicitSectionForGlobal
19; CHECK:     .type test_ExplicitSectionForGlobal,%function
20define void @test_ExplicitSectionForGlobal() section ".test" {
21entry:
22  ret void
23}
24