Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -mtriple=mips-pc-linux -relocation-model=pic < %s | FileCheck %s
      2 
      3 define private void @bar() {
      4   ret void
      5 }
      6 
      7 define 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