diff options
author | Alan Modra <amodra@gmail.com> | 2005-11-06 23:04:53 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-11-06 23:04:53 +0000 |
commit | 5baab855973fb113cdba985a645f9884cec52bc4 (patch) | |
tree | fcd92da53fc964f3837cb5f2779ecc9d57c72aa5 /gas | |
parent | fee9cbc7767e2bada8ff2b7bcde1284fe6b50b4e (diff) | |
download | gdb-5baab855973fb113cdba985a645f9884cec52bc4.zip gdb-5baab855973fb113cdba985a645f9884cec52bc4.tar.gz gdb-5baab855973fb113cdba985a645f9884cec52bc4.tar.bz2 |
* gas/z80/z80.exp: Added "suffix" test.
* gas/z80/suffix.s: New file.
* gas/z80/suffix.d: New file.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/z80/suffix.d | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/z80/suffix.s | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/z80/z80.exp | 5 |
4 files changed, 37 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 351470d..6d59389 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2005-11-07 Arnold Metselaar <arnold.metselaar@planet.nl> + + * 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 <hongjiu.lu@intel.com> * 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 0000000..c356275 --- /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 0000000..5cf298b --- /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 afafbb8..db11bb7 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" } |