brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · b1fc6cf Raw
19 lines · plain
1; RUN: llc -mtriple=mipsel -mcpu=mips32 -relocation-model=pic \2; RUN:     -fast-isel=true -fast-isel-abort=3 < %s | FileCheck %s3; RUN: llc -mtriple=mipsel -mcpu=mips32r2 -relocation-model=pic \4; RUN:     -fast-isel=true -fast-isel-abort=3 < %s | FileCheck %s5 6@ARR = external global [10 x i32], align 47 8define void @foo() {9; CHECK-LABEL: foo10 11; CHECK-DAG:    lw      $[[ARR:[0-9]+]], %got(ARR)({{.*}})12; CHECK-DAG:    addiu   $[[T0:[0-9]+]], $zero, 1234513; CHECK:        sw      $[[T0]], 8($[[ARR]])14 15entry:16  store i32 12345, ptr getelementptr inbounds ([10 x i32], ptr @ARR, i32 0, i32 2), align 417  ret void18}19