2 # Check R_MIPS_HIGHER / R_MIPS_HIGHEST relocations calculation.
4 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t1.o
5 # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux \
6 # RUN: %S/Inputs/mips-dynamic.s -o %t2.o
7 # RUN: ld.lld %t1.o %t2.o -o %t.exe
8 # RUN: llvm-objdump --no-print-imm-hex -d --no-show-raw-insn %t.exe | FileCheck %s
12 lui $
6, %highest
(_foo+
0x300047FFF7FF7)
13 daddiu $
6, $
6, %higher
(_foo+
0x300047FFF7FF7)
14 lui $
7, %highest
(_foo+
0x300047FFF7FF8)
15 ld $
7, %higher
(_foo+
0x300047FFF7FF8)($
7)
18 # CHECK-NEXT: lui $6, 3
19 # CHECK-NEXT: daddiu $6, $6, 5
20 # CHECK-NEXT: lui $7, 3
21 # CHECK-NEXT: ld $7, 5($7)