1 // RUN
: llvm-mc
-filetype
=obj
-triple
=mips64el-pc-linux
-mcpu
=mips64
%s
-o
- | llvm-readobj
-r | FileCheck
%s
2 // RUN
: llvm-mc
-filetype
=obj
-triple
=mips64-pc-linux
-mcpu
=mips64
%s
-o
- | llvm-readobj
-r | FileCheck
%s
4 // Check for N64 relocation production.
5 // Check that the appropriate relocations were created.
7 // CHECK
: Relocations
[
8 // CHECK
: 0x
{{[0-9,A-F
]+}} R_MIPS_GPREL16
/R_MIPS_SUB
/R_MIPS_HI16
9 // CHECK
: 0x
{{[0-9,A-F
]+}} R_MIPS_GPREL16
/R_MIPS_SUB
/R_MIPS_LO16
10 // CHECK
: 0x
{{[0-9,A-F
]+}} R_MIPS_GOT_PAGE
/R_MIPS_NONE
/R_MIPS_NONE
11 // CHECK
: 0x
{{[0-9,A-F
]+}} R_MIPS_GOT_OFST
/R_MIPS_NONE
/R_MIPS_NONE
17 .section .mdebug.abi64,"",@progbits
18 .file "/home/espindola/llvm/llvm/test/MC/Mips/elf-N64.ll"
34 sd $ra
, 8($sp
) # 8-byte Folded Spill
35 sd $gp
, 0($sp
) # 8-byte Folded Spill
36 lui $
1, %hi
(%neg(%gp_rel
(main
)))
38 daddiu $gp
, $
1, %lo
(%neg(%gp_rel
(main
)))
39 ld $
1, %got_page
($str
)($gp
)
40 daddiu $
4, $
1, %got_ofst
($str
)
41 ld $
25, %call16
(puts
)($gp
)
45 ld $gp
, 0($sp
) # 8-byte Folded Reload
46 ld $ra
, 8($sp
) # 8-byte Folded Reload
55 .size main, ($tmp0)-main
57 .type $str,@object # @str
58 .section .rodata.str1.4,"aMS",@progbits,1