* gas/z80/jr-forwf.s: New file, adapted from z8k version.
* gas/z80/jr-backf.s: Likewise.
* gas/z80/djnz-backf.s: Likewise.
* gas/z80/ill_op: New file, with illegal operand.
* gas/z80/z80.exp: Run new tests.
+2012-05-06 Arnold Metselaar <arnold_m@operamail.com>
+
+ * gas/z80/jr-forwf.s: New file, adapted from z8k version.
+ * gas/z80/jr-backf.s: Likewise.
+ * gas/z80/djnz-backf.s: Likewise.
+ * gas/z80/ill_op: New file, with illegal operand.
+ * gas/z80/z80.exp: Run new tests.
+
2012-05-03 Sean Keys <skeys@ipdatasys.com>
* gas/all/gas.exp: Added xgate tex entry.
--- /dev/null
+.text
+.globl label1
+label1: nop
+ .space 126
+
+ djnz label1
+ nop
+
--- /dev/null
+.text
+ LD HL,(SP+0)
--- /dev/null
+.text
+.globl start
+start: nop
+ .space 126
+.globl dest
+dest: jr z,start
+ nop
--- /dev/null
+.text
+start: jr c,dest
+ .space 128
+.globl dest
+dest: nop
run_dump_test "suffix"
# test assembling and disassembling instructions involving offsets
run_dump_test "offset"
+ gas_test_error "jr-forwf.s" "" "relative jump out of range (jr)"
+ gas_test_error "jr-backf.s" "" "relative jump out of range (jr)"
+ gas_test_error "djnz-backf.s" "" "relative jump out of range (djnz)"
+
# test assembling instruction with offset that is a label defined later
run_dump_test "atend"
# test for data transfer instructions
run_dump_test "inout"
#test for other instructions
run_dump_test "misc"
+ gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"
}