summaryrefslogtreecommitdiff
path: root/test/MC/ARM/t2-modified-immediate-fixup-error1.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/t2-modified-immediate-fixup-error1.s')
-rw-r--r--test/MC/ARM/t2-modified-immediate-fixup-error1.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/ARM/t2-modified-immediate-fixup-error1.s b/test/MC/ARM/t2-modified-immediate-fixup-error1.s
new file mode 100644
index 000000000000..f5113a649207
--- /dev/null
+++ b/test/MC/ARM/t2-modified-immediate-fixup-error1.s
@@ -0,0 +1,13 @@
+@ PR28647
+@ RUN: not llvm-mc -triple=thumbv7a-linux-gnueabi -filetype=obj < %s 2>&1 | FileCheck %s
+ .text
+ .syntax unified
+ .balign 2
+
+@ Error with unencodeable immediate
+ add r1, r2, sym0
+@ CHECK: error: out of range immediate fixup value
+ .equ sym0, 0x01abcdef
+.L2:
+ mov r0, .L2
+@ CHECK: error: unsupported relocation on symbol