25 lines · plain
1; DISABLED: llc < %s -mtriple=mipsel -mips-fix-global-base-reg=false | FileCheck %s 2; RUN: false3; XFAIL: *4 5@g0 = external global i326@g1 = external global i327@g2 = external global i328 9define void @foo1() nounwind {10entry:11; CHECK-NOT: .cpload12; CHECK-NOT: .cprestore13; 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]], $2516; CHECK: lw ${{[0-9]+}}, %call16(foo2)($[[GP]])17 18 tail call void @foo2(ptr @g0) nounwind19 tail call void @foo2(ptr @g1) nounwind20 tail call void @foo2(ptr @g2) nounwind21 ret void22}23 24declare void @foo2(ptr)25