blob: 1c0eb01b67c1175d5055f7849fe7efb92f7e1143 [file] [log] [blame]
Akira Hatanaka4147e4d2012-05-12 00:48:43 +00001; DISABLED: llc < %s -march=mipsel -mips-fix-global-base-reg=false | FileCheck %s
2; RUN: false
3; XFAIL: *
Akira Hatanaka648f00c2012-02-24 22:34:47 +00004
5@g0 = external global i32
6@g1 = external global i32
7@g2 = external global i32
8
9define void @foo1() nounwind {
10entry:
11; CHECK-NOT: .cpload
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]])
17
18 tail call void @foo2(i32* @g0) nounwind
19 tail call void @foo2(i32* @g1) nounwind
20 tail call void @foo2(i32* @g2) nounwind
21 ret void
22}
23
24declare void @foo2(i32*)