Eric Christopher | 015dc20 | 2017-07-01 02:55:22 +0000 | [diff] [blame] | 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 |
David Spickett | ea60591 | 2018-09-28 08:55:19 +0000 | [diff] [blame] | 3 | ; RUN: llc < %s -mtriple=thumbv8m.base -mcpu=cortex-m23 -mattr=+execute-only %s -o - | FileCheck %s |
Eric Christopher | 015dc20 | 2017-07-01 02:55:22 +0000 | [diff] [blame] | 4 | ; RUN: llc < %s -mtriple=thumbv8m.main -mattr=+execute-only %s -o - | FileCheck %s |
Prakhar Bahuguna | 52a7dd7 | 2016-12-15 07:59:08 +0000 | [diff] [blame] | 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 |
| 11 | define void @test_SectionForGlobal() { |
| 12 | entry: |
| 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 |
| 21 | define void @test_ExplicitSectionForGlobal() section ".test" { |
| 22 | entry: |
| 23 | ret void |
| 24 | } |