2014-11-06 21:20:12 +08:00
|
|
|
; RUN: llc -mtriple=mipsel-sde-elf -march=mipsel -relocation-model=static -mattr=+noabicalls -mgpopt < %s \
|
2012-08-22 11:18:13 +08:00
|
|
|
; RUN: | FileCheck %s
|
|
|
|
|
|
|
|
@i = internal unnamed_addr global i32 0, align 4
|
|
|
|
|
|
|
|
define i32 @geti() nounwind readonly {
|
|
|
|
entry:
|
2012-08-25 04:21:49 +08:00
|
|
|
; CHECK: lw ${{[0-9]+}}, %gp_rel(i)($gp)
|
2015-02-28 05:17:42 +08:00
|
|
|
%0 = load i32, i32* @i, align 4
|
2012-08-22 11:18:13 +08:00
|
|
|
ret i32 %0
|
|
|
|
}
|
|
|
|
|