mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
e538054e6d
Currently, if the assembler encounters an error after parsing (such as an out-of-range fixup), it reports this as a fatal error, and so stops after the first error. However, for most of these there is an obvious way to recover after emitting the error, such as emitting the fixup with a value of zero. This means that we can report on all of the errors in a file, not just the first one. MCContext::reportError records the fact that an error was encountered, so we won't actually emit an object file with the incorrect contents. Differential Revision: http://reviews.llvm.org/D14717 llvm-svn: 253328
11 lines
292 B
ArmAsm
11 lines
292 B
ArmAsm
# RUN: llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r2 -arch=mips -mattr=+micromips 2>&1 -filetype=obj | FileCheck %s
|
|
#
|
|
# CHECK-NOT: error: out of range PC16 fixup
|
|
|
|
.text
|
|
b foo
|
|
.space 65536 - 8, 1 # -8 = size of b instr plus size of automatically inserted nop
|
|
foo:
|
|
add $0,$0,$0
|
|
|