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
8
9        .globl  __start
10__start:
11.zero 1
12        beqc      $5, $6, _foo            # R_MIPS_PC16
13