summaryrefslogtreecommitdiff
path: root/test/MC/PowerPC/ppc64-errors.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/PowerPC/ppc64-errors.s')
-rw-r--r--test/MC/PowerPC/ppc64-errors.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/PowerPC/ppc64-errors.s b/test/MC/PowerPC/ppc64-errors.s
index 1da5753046..8b6dd5395f 100644
--- a/test/MC/PowerPC/ppc64-errors.s
+++ b/test/MC/PowerPC/ppc64-errors.s
@@ -32,6 +32,14 @@
# CHECK-NEXT: ori 1, 2, 65536
ori 1, 2, 65536
+# Signed 16-bit immediate operands (extended range for addis)
+
+# CHECK: error: invalid operand for instruction
+ addis 1, 0, -65537
+
+# CHECK: error: invalid operand for instruction
+ addis 1, 0, 65536
+
# D-Form memory operands
# CHECK: error: invalid register number