26 lines · plain
1; RUN: llc < %s -mtriple=thumbv6m -mattr=+execute-only %s -o - | FileCheck %s2; RUN: llc < %s -mtriple=thumbv7m -mattr=+execute-only %s -o - | FileCheck %s3; RUN: llc < %s -mtriple=thumbv8m.base -mattr=+execute-only %s -o - | FileCheck %s4; RUN: llc < %s -mtriple=thumbv8m.base -mcpu=cortex-m23 -mattr=+execute-only %s -o - | FileCheck %s5; RUN: llc < %s -mtriple=thumbv8m.main -mattr=+execute-only %s -o - | FileCheck %s6 7; CHECK: .section .text,"axy",%progbits,unique,08; CHECK-NOT: .section9; CHECK-NOT: .text10; CHECK: .globl test_SectionForGlobal11; CHECK: .type test_SectionForGlobal,%function12define void @test_SectionForGlobal() {13entry:14 ret void15}16 17; CHECK: .section .test,"axy",%progbits18; CHECK-NOT: .section19; CHECK-NOT: .text20; CHECK: .globl test_ExplicitSectionForGlobal21; CHECK: .type test_ExplicitSectionForGlobal,%function22define void @test_ExplicitSectionForGlobal() section ".test" {23entry:24 ret void25}26