[Clang] replace 'bitfield' with 'bit-field' for consistency (#117881)
[llvm-project.git] / lld / test / ELF / mips-higher-highest.s
blob869fd3919c36bc6a31b91f98d0401a532e775a60
1 # REQUIRES: mips
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
10 .global __start
11 __start:
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)
17 # CHECK: <__start>:
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)
22 # CHECK-EMPTY:
23 # CHECK-NEXT: <_foo>: