xref: /llvm-project/llvm/test/CodeGen/PowerPC/func-addr-consts.ll (revision 427fb35192f1f7bb694a5910b05abc5925a798b2)
1; RUN: llc < %s | FileCheck %s
2target datalayout = "E-m:e-i64:64-n32:64"
3target triple = "powerpc64--linux"
4
5@g = internal constant ptr @f, section "gsection", align 8
6@h = constant ptr @f, section "hsection", align 8
7@llvm.used = appending global [2 x ptr] [ptr @g, ptr @h], section "llvm.metadata"
8
9; Function Attrs: nounwind uwtable
10define internal void @f() {
11entry:
12  ret void
13}
14
15; CHECK: .section	gsection,"awR",@progbits
16; CHECK: .section	hsection,"awR",@progbits
17