blob: 8c7eb0c43767bba7e4c5d6f4954f56d1c358f38d [file] [log] [blame]
Eric Christopher015dc202017-07-01 02:55:22 +00001; 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
David Spickettea605912018-09-28 08:55:19 +00003; RUN: llc < %s -mtriple=thumbv8m.base -mcpu=cortex-m23 -mattr=+execute-only %s -o - | FileCheck %s
Eric Christopher015dc202017-07-01 02:55:22 +00004; RUN: llc < %s -mtriple=thumbv8m.main -mattr=+execute-only %s -o - | FileCheck %s
Prakhar Bahuguna52a7dd72016-12-15 07:59:08 +00005
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}