summaryrefslogtreecommitdiff
path: root/test/MC/ARM/thumb2-diagnostics.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/thumb2-diagnostics.s')
-rw-r--r--test/MC/ARM/thumb2-diagnostics.s28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb2-diagnostics.s b/test/MC/ARM/thumb2-diagnostics.s
index d94c686e2f83f..6ac2db02cca75 100644
--- a/test/MC/ARM/thumb2-diagnostics.s
+++ b/test/MC/ARM/thumb2-diagnostics.s
@@ -42,3 +42,31 @@
@ CHECK-ERRORS: error: invalid operand for instruction
@ CHECK-ERRORS: error: immediate operand must be in the range [0,15]
@ CHECK-ERRORS: error: immediate operand must be in the range [0,15]
+
+ isb #-1
+ isb #16
+@ CHECK-ERRORS: error: immediate value out of range
+@ CHECK-ERRORS: error: immediate value out of range
+
+ itt eq
+ bkpteq #1
+@ CHECK-ERRORS: error: instruction 'bkpt' is not predicable, but condition code specified
+
+ nopeq
+ nopeq
+
+@ out of range operands for Thumb2 targets
+
+ beq.w #-1048578
+ bne.w #1048576
+ blt.w #1013411
+ b.w #-16777218
+ b.w #16777216
+ b.w #1592313
+
+@ CHECK-ERRORS: error: branch target out of range
+@ CHECK-ERRORS: error: branch target out of range
+@ CHECK-ERRORS: error: branch target out of range
+@ CHECK-ERRORS: error: branch target out of range
+@ CHECK-ERRORS: error: branch target out of range
+@ CHECK-ERRORS: error: branch target out of range