1 ; DISABLED: llc < %s -march=mipsel -mips-fix-global-base-reg=false | FileCheck %s
5 @g0 = external global i32
6 @g1 = external global i32
7 @g2 = external global i32
9 define void @foo1() nounwind {
12 ; CHECK-NOT: .cprestore
13 ; CHECK: lui $[[R0:[0-9]+]], %hi(_gp_disp)
14 ; CHECK: addiu $[[R1:[0-9]+]], $[[R0]], %lo(_gp_disp)
15 ; CHECK: addu $[[GP:[0-9]+]], $[[R1]], $25
16 ; CHECK: lw ${{[0-9]+}}, %call16(foo2)($[[GP]])
18 tail call void @foo2(ptr @g0) nounwind
19 tail call void @foo2(ptr @g1) nounwind
20 tail call void @foo2(ptr @g2) nounwind
24 declare void @foo2(ptr)