[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / mips-align-err.s
blob8bf01dc5c382565c50e92135c7dcb8f957738ffe
1 # REQUIRES: mips
2 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o \
3 # RUN: -mcpu=mips32r6
4 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
5 # RUN: -mcpu=mips32r6 %S/Inputs/mips-align-err.s -o %t2.o
6 # RUN: not ld.lld %t.o %t2.o -o /dev/null 2>&1 | FileCheck %s
7 # CHECK: {{.*}}:(.text+0x1): improper alignment for relocation R_MIPS_PC16: 0xB is not aligned to 4 bytes
9 .globl __start
10 __start:
11 .zero 1
12 beqc $5, $6, _foo # R_MIPS_PC16