Daniel Sanders | cbaca42 | 2016-07-29 12:27:28 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \ |
Reed Kotler | 87048a4 | 2014-08-07 22:09:01 +0000 | [diff] [blame] | 2 | ; RUN: < %s | FileCheck %s |
Daniel Sanders | cbaca42 | 2016-07-29 12:27:28 +0000 | [diff] [blame] | 3 | ; RUN: llc -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \ |
Reed Kotler | 32be74b | 2014-09-15 20:30:25 +0000 | [diff] [blame] | 4 | ; RUN: < %s | FileCheck %s |
Reed Kotler | 87048a4 | 2014-08-07 22:09:01 +0000 | [diff] [blame] | 5 | |
| 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 |
| 10 | define void @foo() #0 { |
| 11 | entry: |
David Blaikie | f72d05b | 2015-03-13 18:20:45 +0000 | [diff] [blame] | 12 | store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8** @s, align 4 |
Reed Kotler | 87048a4 | 2014-08-07 22:09:01 +0000 | [diff] [blame] | 13 | 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 | |
| 20 | attributes #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 | |