mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
3d2354b78a
Issue subject: Crash using integrated assembler with immediate arithmetic Fix description: Expressions like 'cmp r0, #(l1 - l2) >> 3' could not be evaluated on asm parsing stage, since it is impossible to resolve labels on this stage. In the end of stage we still have expression (MCExpr). Then, when we want to encode it, we expect it to be an immediate, but it still an expression. Patch introduces a Fixup (MCFixup instance), that is processed after main encoding stage. llvm-svn: 205094
8 lines
216 B
ArmAsm
8 lines
216 B
ArmAsm
@ RUN: not llvm-mc -triple=arm-linux-gnueabi -filetype=obj < %s 2>&1 | FileCheck %s
|
|
|
|
.text
|
|
cmp r0, #(l1 - unknownLabel)
|
|
@ CHECK: error: symbol 'unknownLabel' can not be undefined in a subtraction expression
|
|
|
|
l1:
|