mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
00fd9cb07c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273843 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
304 B
LLVM
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
|
|
}
|