blob: 78077f7642f9772090f9bb4cee872c58394d4592 [file] [log] [blame]
Daniel Sanderscbaca422016-07-29 12:27:28 +00001; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \
Reed Kotler87048a42014-08-07 22:09:01 +00002; RUN: < %s | FileCheck %s
Daniel Sanderscbaca422016-07-29 12:27:28 +00003; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \
Reed Kotler32be74b2014-09-15 20:30:25 +00004; RUN: < %s | FileCheck %s
Reed Kotler87048a42014-08-07 22:09:01 +00005
6@.str = private unnamed_addr constant [6 x i8] c"hello\00", align 1
7@s = common global i8* null, align 4
8
9; Function Attrs: nounwind
10define void @foo() #0 {
11entry:
David Blaikief72d05b2015-03-13 18:20:45 +000012 store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8** @s, align 4
Reed Kotler87048a42014-08-07 22:09:01 +000013 ret void
14; CHECK: .ent foo
15; 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" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
21