From 5baab855973fb113cdba985a645f9884cec52bc4 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 6 Nov 2005 23:04:53 +0000 Subject: [PATCH] * gas/z80/z80.exp: Added "suffix" test. * gas/z80/suffix.s: New file. * gas/z80/suffix.d: New file. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/z80/suffix.d | 15 +++++++++++++++ gas/testsuite/gas/z80/suffix.s | 13 +++++++++++++ gas/testsuite/gas/z80/z80.exp | 5 +++-- 4 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 gas/testsuite/gas/z80/suffix.d create mode 100644 gas/testsuite/gas/z80/suffix.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 351470d5a6b..6d5938967db 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-11-07 Arnold Metselaar + + * gas/z80/z80.exp: Added "suffix" test. + * gas/z80/suffix.s: New file. + * gas/z80/suffix.d: New file. + 2005-11-04 H.J. Lu * gas/i386/padlock.d: Support 64bit BFD. diff --git a/gas/testsuite/gas/z80/suffix.d b/gas/testsuite/gas/z80/suffix.d new file mode 100644 index 00000000000..c3562758a0b --- /dev/null +++ b/gas/testsuite/gas/z80/suffix.d @@ -0,0 +1,15 @@ +#objdump: -s -r -j .data +#name: suffixes + +.*:.* + +RELOCATION RECORDS FOR \[.data\]: +OFFSET[ ]+TYPE[ ]+VALUE[ ]* +00000002[ ]+r_imm16[ ]+.data[ ]* +00000014[ ]+r_imm16[ ]+.data[ ]* + + +Contents of section .data: + 0000 0a000000 08020802 08020802 f203f203[ ]+................[ ]* + 0010 10b010b0 1600[ ]+......[ ]* +#pass diff --git a/gas/testsuite/gas/z80/suffix.s b/gas/testsuite/gas/z80/suffix.s new file mode 100644 index 00000000000..5cf298b8505 --- /dev/null +++ b/gas/testsuite/gas/z80/suffix.s @@ -0,0 +1,13 @@ + .section .data +1010: .word 1010B + .word 1010b + .word 1010Q + .word 1010q + .word 1010O + .word 1010o + .word 1010D + .word 1010d + .word 0B010H + .word 0b010h + .word 1010f +1010: diff --git a/gas/testsuite/gas/z80/z80.exp b/gas/testsuite/gas/z80/z80.exp index afafbb84598..db11bb746f6 100644 --- a/gas/testsuite/gas/z80/z80.exp +++ b/gas/testsuite/gas/z80/z80.exp @@ -1,9 +1,10 @@ -# run targets for target Z80. +# run tests for target Z80. if [istarget z80-*-*] then { # test redefinitions run_dump_test "redef" # test parsing of " and ' run_dump_test "quotes" - +# test suffixes + run_dump_test "suffix" } -- 2.30.2