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.base -mcpu=cortex-m23 -mattr=+execute-only %s -o - | FileCheck %s
4; RUN: llc < %s -mtriple=thumbv8m.main -mattr=+execute-only %s -o - | FileCheck %s
5
6; CHECK:     .section .text,"axy",%progbits,unique,0
7; CHECK-NOT: .section
8; CHECK-NOT: .text
9; CHECK:     .globl test_SectionForGlobal
10; CHECK:     .type test_SectionForGlobal,%function
11define void @test_SectionForGlobal() {
12entry:
13  ret void
14}
15
16; CHECK:     .section .test,"axy",%progbits
17; CHECK-NOT: .section
18; CHECK-NOT: .text
19; CHECK:     .globl test_ExplicitSectionForGlobal
20; CHECK:     .type test_ExplicitSectionForGlobal,%function
21define void @test_ExplicitSectionForGlobal() section ".test" {
22entry:
23  ret void
24}
25