Prakhar Bahuguna | 52a7dd7 | 2016-12-15 07:59:08 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=thumbv7m -arm-execute-only %s -o - | FileCheck %s |
| 2 | ; RUN: llc < %s -mtriple=thumbv8m.base -arm-execute-only %s -o - | FileCheck %s |
| 3 | ; RUN: llc < %s -mtriple=thumbv8m.main -arm-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 |
| 10 | define void @test_SectionForGlobal() { |
| 11 | entry: |
| 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 |
| 20 | define void @test_ExplicitSectionForGlobal() section ".test" { |
| 21 | entry: |
| 22 | ret void |
| 23 | } |