* gas/z80/z80.exp: Added "suffix" test.
authorAlan Modra <amodra@gmail.com>
Sun, 6 Nov 2005 23:04:53 +0000 (23:04 +0000)
committerAlan Modra <amodra@gmail.com>
Sun, 6 Nov 2005 23:04:53 +0000 (23:04 +0000)
* gas/z80/suffix.s: New file.
* gas/z80/suffix.d: New file.

gas/testsuite/ChangeLog
gas/testsuite/gas/z80/suffix.d [new file with mode: 0644]
gas/testsuite/gas/z80/suffix.s [new file with mode: 0644]
gas/testsuite/gas/z80/z80.exp

index 351470d..6d59389 100644 (file)
@@ -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 (file)
index 0000000..c356275
--- /dev/null
@@ -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 (file)
index 0000000..5cf298b
--- /dev/null
@@ -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:
index afafbb8..db11bb7 100644 (file)
@@ -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"
 }