1 ; RUN: llc < %s -march=mipsel -mips-fix-global-base-reg=false | FileCheck %s 2 3 @g0 = external global i32 4 @g1 = external global i32 5 @g2 = external global i32 6 7 define void @foo1() nounwind { 8 entry: 9 ; CHECK-NOT: .cpload 10 ; CHECK-NOT: .cprestore 11 ; CHECK: lui $[[R0:[0-9]+]], %hi(_gp_disp) 12 ; CHECK: addiu $[[R1:[0-9]+]], $[[R0]], %lo(_gp_disp) 13 ; CHECK: addu $[[GP:[0-9]+]], $[[R1]], $25 14 ; CHECK: lw ${{[0-9]+}}, %call16(foo2)($[[GP]]) 15 16 tail call void @foo2(i32* @g0) nounwind 17 tail call void @foo2(i32* @g1) nounwind 18 tail call void @foo2(i32* @g2) nounwind 19 ret void 20 } 21 22 declare void @foo2(i32*) 23