1 // RUN: llvm-mc -filetype=obj -triple=mips64el-pc-linux -mcpu=mips64 %s -o - \
2 // RUN: | llvm-readobj -r \
5 // Check that the appropriate relocations were created.
7 // R_MIPS_GPREL32/R_MIPS_64/R_MIPS_NONE
8 // CHECK: Relocations [
9 // CHECK: Section ({{[a-z0-9]+}}) .rela.rodata {
10 // CHECK-NEXT: 0x{{[0-9,A-F]+}} R_MIPS_GPREL32/R_MIPS_64/R_MIPS_NONE
11 // CHECK-NEXT: 0x{{[0-9,A-F]+}} R_MIPS_GPREL32/R_MIPS_64/R_MIPS_NONE
12 // CHECK-NEXT: 0x{{[0-9,A-F]+}} R_MIPS_GPREL32/R_MIPS_64/R_MIPS_NONE
13 // CHECK-NEXT: 0x{{[0-9,A-F]+}} R_MIPS_GPREL32/R_MIPS_64/R_MIPS_NONE
19 .section .mdebug.abi64,"",@progbits
20 .file "/home/espindola/llvm/llvm/test/MC/Mips/elf-gprel-32-64.ll"
35 lui $1, %hi(%neg(%gp_rel(test)))
45 daddiu $1, $2, %lo(%neg(%gp_rel(test)))
50 ld $4, %got_page($JTI0_0)($1)
52 ld $3, %got_ofst($JTI0_0)($3)
73 .size test, ($tmp0)-test
74 .section .rodata,"a",@progbits