bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Hexagon/pic-local.ll
2025-02-14 19:21:04 +01:00

19 lines
322 B
LLVM

; RUN: llc -march=hexagon -mcpu=hexagonv5 -relocation-model=pic < %s | FileCheck %s
define private void @f1() {
ret void
}
define internal void @f2() {
ret void
}
define ptr @get_f1() {
; CHECK: r0 = add(pc,##.Lf1@PCREL)
ret ptr @f1
}
define ptr @get_f2() {
; CHECK: r0 = add(pc,##f2@PCREL)
ret ptr @f2
}