Home | History | Annotate | Download | only in Fast-ISel
      1 ; RUN: llc -march=mipsel -mcpu=mips32 -relocation-model=pic \
      2 ; RUN:     -fast-isel=true -fast-isel-abort=1 < %s | FileCheck %s
      3 ; RUN: llc -march=mipsel -mcpu=mips32r2 -relocation-model=pic \
      4 ; RUN:     -fast-isel=true -fast-isel-abort=1 < %s | FileCheck %s
      5 
      6 @ARR = external global [10 x i32], align 4
      7 
      8 define void @foo() {
      9 ; CHECK-LABEL: foo
     10 
     11 ; CHECK-DAG:    lw      $[[ARR:[0-9]+]], %got(ARR)({{.*}})
     12 ; CHECK-DAG:    addiu   $[[T0:[0-9]+]], $zero, 12345
     13 ; CHECK:        sw      $[[T0]], 8($[[ARR]])
     14 
     15 entry:
     16   store i32 12345, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @ARR, i32 0, i32 2), align 4
     17   ret void
     18 }
     19