aboutsummaryrefslogtreecommitdiff
path: root/test/MC/Hexagon/operand-range.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Hexagon/operand-range.s')
-rw-r--r--test/MC/Hexagon/operand-range.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/Hexagon/operand-range.s b/test/MC/Hexagon/operand-range.s
new file mode 100644
index 00000000000..c38aab7060d
--- /dev/null
+++ b/test/MC/Hexagon/operand-range.s
@@ -0,0 +1,7 @@
+# RUN: not llvm-mc -arch=hexagon -filetype=asm %s 2>&1 | FileCheck %s
+
+# Expect errors here, insn needs to be extended
+R1 = mpyi(R2, #-256)
+# CHECK: error:
+R3 = mpyi(R4, #256)
+# CHECK: error: