2 # Check warning on orphaned R_MIPS_HI16 relocations.
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
5 # RUN: ld.lld %t.o -o %t.exe 2>&1 | FileCheck -check-prefix=WARN %s
6 # RUN: llvm-objdump -d -t --print-imm-hex --no-show-raw-insn %t.exe | FileCheck %s
11 lui $t0
,%hi
(__start+
0x10000)
12 addi $t0
,$t0
,%lo
(_label
)
16 # WARN: can't find matching R_MIPS_LO16 relocation for R_MIPS_HI16
18 # CHECK: SYMBOL TABLE:
19 # CHECK: 00020{{0*}}[[VAL:[0-9a-f]+]] l .text 00000000 _label
20 # CHECK: 00020{{.*}} g .text 00000000 __start
23 # CHECK-NEXT: lui $8, 0x3
24 # ^-- %hi(__start) w/o addend
25 # CHECK-NEXT: addi $8, $8, 0x[[VAL]]