27 lines · plain
1# REQUIRES: mips2# Check warning on orphaned R_MIPS_HI16 relocations.3 4# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o5# RUN: ld.lld %t.o -o %t.exe 2>&1 | FileCheck -check-prefix=WARN %s6# RUN: llvm-objdump -d -t --print-imm-hex --no-show-raw-insn %t.exe | FileCheck %s7 8 .text9 .globl __start10__start:11 lui $t0,%hi(__start+0x10000)12 addi $t0,$t0,%lo(_label)13_label:14 nop15 16# WARN: can't find matching R_MIPS_LO16 relocation for R_MIPS_HI1617 18# CHECK: SYMBOL TABLE:19# CHECK: 00020{{0*}}[[VAL:[0-9a-f]+]] l .text 00000000 _label20# CHECK: 00020{{.*}} g .text 00000000 __start21 22# CHECK: <__start>:23# CHECK-NEXT: lui $8, 0x324# ^-- %hi(__start) w/o addend25# CHECK-NEXT: addi $8, $8, 0x[[VAL]]26# ^-- %lo(_label)27