brintos

brintos / llvm-project-archived public Read only

0
0
Text · 577 B · 0844e32 Raw
21 lines · plain
1# Check that llvm-mc accepts arithmetic expression2# as an argument of the %got relocation.3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s \5# RUN:   | llvm-objdump --no-print-imm-hex -d -r - | FileCheck %s6 7  .text8foo:9  lw      $t0,%got($loc+0x10004)($gp)10# CHECK: 0:       8f 88 00 01     lw      $8, 1($gp)11# CHECK:                  00000000:  R_MIPS_GOT16 .data12  addi    $t0,$t0,%lo($loc+0x10004)13# CHECK: 4:       21 08 00 04     addi    $8, $8, 414# CHECK:                  00000004:  R_MIPS_LO16  .data15 16  .data17$loc:18  .word 019  .space 0x1000020  .word 021