• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=mips-pc-linux -relocation-model=pic < %s | FileCheck %s
2
3define private void @bar() {
4  ret void
5}
6
7define void()* @foo() {
8; CHECK:      foo:
9; CHECK:      lw     $[[REG:.*]], %got($bar)($1)
10; CHECK-NEXT: jr     $ra
11; CHECK-NEXT: addiu  $2, $[[REG]], %lo($bar)
12
13  ret void()* @bar
14}
15