aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/mips-align-err.s
blob: 28b192ac29f31e34ba06a1049a52284c332b3e8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# REQUIRES: mips
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o \
# RUN:         -mcpu=mips32r6
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
# RUN:         -mcpu=mips32r6 %S/Inputs/mips-align-err.s -o %t2.o
# RUN: not ld.lld %t.o %t2.o -o %t.exe 2>&1 | FileCheck %s
# CHECK: improper alignment for relocation R_MIPS_PC16

        .globl  __start
__start:
.zero 1
        beqc      $5, $6, _foo            # R_MIPS_PC16