1 // RUN: llvm-mc -triple=mips64el-pc-linux -filetype=obj -mcpu=mips64r2 < %s -o - | llvm-readobj -r | FileCheck %s
3 // Check that the R_MIPS_GOT_DISP relocations were created.
5 // CHECK: Relocations [
6 // CHECK: 0x{{[0-9,A-F]+}} R_MIPS_GOT_DISP
10 .section .mdebug.abi64,"",@progbits
27 sd $ra, 8($sp) # 8-byte Folded Spill
28 sd $gp, 0($sp) # 8-byte Folded Spill
29 lui $1, %hi(%neg(%gp_rel(main)))
31 daddiu $gp, $1, %lo(%neg(%gp_rel(main)))
32 ld $1, %got_disp(shl)($gp)
34 ld $1, %got_page($.str)($gp)
35 ld $25, %call16(printf)($gp)
37 daddiu $4, $1, %got_ofst($.str)
39 ld $gp, 0($sp) # 8-byte Folded Reload
40 ld $ra, 8($sp) # 8-byte Folded Reload
48 .size main, ($tmp0)-main
50 .type shl,@object # @shl
58 .type $.str,@object # @.str
59 .section .rodata.str1.1,"aMS",@progbits,1