64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
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
|
|
}
|