summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/section-name.ll
blob: a0aad4733bc8398a05518d4ad054559a6d71b542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
; RUN: llc < %s -mtriple=arm-unknown-linux-gnueabi | FileCheck %s

; CHECK: .text
; CHECK: .globl test1
; CHECK: .type test1,%function
define void @test1() {
entry:
  ret void
}

; CHECK: .section .test2,"ax",%progbits
; CHECK: .globl test2
; CHECK: .type test2,%function
define void @test2() section ".test2" {
entry:
  ret void
}

; CHECK: .section .text.test3,"axG",%progbits,test3,comdat
; CHECK: .weak test3
; CHECK: .type test3,%function
define linkonce_odr void @test3() {
entry:
  ret void
}