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