1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test/CodeGen/Mips/private-addr.ll
Rafael Espindola 09be7f4091 Mips: Fix access to private functions.
llvm-svn: 273843
2016-06-27 03:19:40 +00:00

15 lines
304 B
LLVM

; RUN: llc -mtriple=mips-pc-linux -relocation-model=pic < %s | FileCheck %s
define private void @bar() {
ret void
}
define void()* @foo() {
; CHECK: foo:
; CHECK: lw $[[REG:.*]], %got($bar)($1)
; CHECK-NEXT: jr $ra
; CHECK-NEXT: addiu $2, $[[REG]], %lo($bar)
ret void()* @bar
}