diff options
Diffstat (limited to 'test/MC/ARM/cmp-immediate-fixup-error.s')
-rw-r--r-- | test/MC/ARM/cmp-immediate-fixup-error.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ARM/cmp-immediate-fixup-error.s b/test/MC/ARM/cmp-immediate-fixup-error.s new file mode 100644 index 0000000..25a2368 --- /dev/null +++ b/test/MC/ARM/cmp-immediate-fixup-error.s @@ -0,0 +1,7 @@ +@ RUN: not llvm-mc -triple=arm-linux-gnueabi -filetype=obj < %s 2>&1 | FileCheck %s + +.text + cmp r0, #(l1 - unknownLabel + 4) >> 2 +@ CHECK: error: expected relocatable expression + +l1: |