xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/section-name.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=arm-unknown-linux-gnueabi | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK: .text
4*9880d681SAndroid Build Coastguard Worker; CHECK: .globl test1
5*9880d681SAndroid Build Coastguard Worker; CHECK: .type test1,%function
6*9880d681SAndroid Build Coastguard Workerdefine void @test1() {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  ret void
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; CHECK: .section .test2,"ax",%progbits
12*9880d681SAndroid Build Coastguard Worker; CHECK: .globl test2
13*9880d681SAndroid Build Coastguard Worker; CHECK: .type test2,%function
14*9880d681SAndroid Build Coastguard Workerdefine void @test2() section ".test2" {
15*9880d681SAndroid Build Coastguard Workerentry:
16*9880d681SAndroid Build Coastguard Worker  ret void
17*9880d681SAndroid Build Coastguard Worker}
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker; CHECK: .text
20*9880d681SAndroid Build Coastguard Worker; CHECK: .weak test3
21*9880d681SAndroid Build Coastguard Worker; CHECK: .type test3,%function
22*9880d681SAndroid Build Coastguard Workerdefine linkonce_odr void @test3() {
23*9880d681SAndroid Build Coastguard Workerentry:
24*9880d681SAndroid Build Coastguard Worker  ret void
25*9880d681SAndroid Build Coastguard Worker}
26