Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / mips-hilo-hi-only.s
blob9f320a9133f0367fdf8b4b0231bb1ebc762869e8
1 # REQUIRES: mips
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
8 .text
9 .globl __start
10 __start:
11 lui $t0,%hi(__start+0x10000)
12 addi $t0,$t0,%lo(_label)
13 _label:
14 nop
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
22 # CHECK: <__start>:
23 # CHECK-NEXT: lui $8, 0x3
24 # ^-- %hi(__start) w/o addend
25 # CHECK-NEXT: addi $8, $8, 0x[[VAL]]
26 # ^-- %lo(_label)