22 lines · plain
1; RUN: llc -mtriple=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \2; RUN: < %s | FileCheck %s3; RUN: llc -mtriple=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \4; RUN: < %s | FileCheck %s5 6@.str = private unnamed_addr constant [6 x i8] c"hello\00", align 17@s = common global ptr null, align 48 9; Function Attrs: nounwind10define void @foo() #0 {11entry:12 store ptr @.str, ptr @s, align 413 ret void14; CHECK: .ent foo15; CHECK: lw $[[REG1:[0-9]+]], %got($.str)(${{[0-9]+}})16; CHECK: addiu ${{[0-9]+}}, $[[REG1]], %lo($.str)17 18}19 20attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }21 22