mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-24 10:08:58 +08:00
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.
This commit is contained in:
gas/testsuite
@ -1,3 +1,11 @@
|
|||||||
|
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>
|
2012-05-03 Sean Keys <skeys@ipdatasys.com>
|
||||||
|
|
||||||
* gas/all/gas.exp: Added xgate tex entry.
|
* gas/all/gas.exp: Added xgate tex entry.
|
||||||
|
8
gas/testsuite/gas/z80/djnz-backf.s
Normal file
8
gas/testsuite/gas/z80/djnz-backf.s
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.text
|
||||||
|
.globl label1
|
||||||
|
label1: nop
|
||||||
|
.space 126
|
||||||
|
|
||||||
|
djnz label1
|
||||||
|
nop
|
||||||
|
|
2
gas/testsuite/gas/z80/ill_op.s
Normal file
2
gas/testsuite/gas/z80/ill_op.s
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.text
|
||||||
|
LD HL,(SP+0)
|
7
gas/testsuite/gas/z80/jr-backf.s
Normal file
7
gas/testsuite/gas/z80/jr-backf.s
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.text
|
||||||
|
.globl start
|
||||||
|
start: nop
|
||||||
|
.space 126
|
||||||
|
.globl dest
|
||||||
|
dest: jr z,start
|
||||||
|
nop
|
5
gas/testsuite/gas/z80/jr-forwf.s
Normal file
5
gas/testsuite/gas/z80/jr-forwf.s
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.text
|
||||||
|
start: jr c,dest
|
||||||
|
.space 128
|
||||||
|
.globl dest
|
||||||
|
dest: nop
|
@ -11,6 +11,10 @@ if [istarget z80-*-*] then {
|
|||||||
run_dump_test "suffix"
|
run_dump_test "suffix"
|
||||||
# test assembling and disassembling instructions involving offsets
|
# test assembling and disassembling instructions involving offsets
|
||||||
run_dump_test "offset"
|
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
|
# test assembling instruction with offset that is a label defined later
|
||||||
run_dump_test "atend"
|
run_dump_test "atend"
|
||||||
# test for data transfer instructions
|
# test for data transfer instructions
|
||||||
@ -29,4 +33,5 @@ if [istarget z80-*-*] then {
|
|||||||
run_dump_test "inout"
|
run_dump_test "inout"
|
||||||
#test for other instructions
|
#test for other instructions
|
||||||
run_dump_test "misc"
|
run_dump_test "misc"
|
||||||
|
gas_test_error "ill_op.s" "" "Illegal operand: ld hl,(sp+0)"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user