Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / mips-gp-disp-ver.s
bloba6bf387ccece39e7bcd73d1cad95f13e47976364
1 # REQUIRES: mips
2 # MIPS BFD linker puts _gp_disp symbol into DSO files and assigns zero
3 # version definition index to it. This value means 'unversioned local symbol'
4 # while _gp_disp is a section global symbol. We have to handle this bug
5 # in the LLD because BFD linker is used for building MIPS toolchain
6 # libraries. This test checks such handling.
8 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
9 # RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so -o /dev/null
11 .global __start
12 .text
13 __start:
14 lw $t0, %got(foo)($gp)