2016-03-31 20:09:36 +08:00
|
|
|
# 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
|
2018-07-03 01:48:23 +08:00
|
|
|
# RUN: not ld.lld %t.o %t2.o -o /dev/null 2>&1 | FileCheck %s
|
2017-12-08 22:53:14 +08:00
|
|
|
# CHECK: {{.*}}:(.text+0x1): improper alignment for relocation R_MIPS_PC16: 0xB is not aligned to 4 bytes
|
2016-03-31 20:09:36 +08:00
|
|
|
|
|
|
|
.globl __start
|
|
|
|
__start:
|
|
|
|
.zero 1
|
|
|
|
beqc $5, $6, _foo # R_MIPS_PC16
|