* gas/z80/z80.exp: Run it.
* gas/z80/redef.d: Expect little endian output only.
+2009-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
+
+ * gas/z80/equ.d, gas/z80/equ.s: Added test of parsing equ directives.
+ * gas/z80/z80.exp: Run it.
+
+ * gas/z80/redef.d: Expect little endian output only.
+
2009-10-20 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10775
--- /dev/null
+#objdump: -s -j .data
+#name: .equ definitions
+
+.*: .*
+
+Contents of section .data:
+ 0000 0c000000 08000000 04000000 00000000[ ]+................[ ]*
+#pass
--- /dev/null
+ .data
+_start:
+lab0: .equ .-_start
+ .long lab3
+lab1: equ -(_start - .)
+ .long lab2
+lab2 .equ (.-_start)
+ .long lab1
+lab3 equ ~~(.-_start)
+ .long lab0
.*: .*
Contents of section .data:
- 0000 00000000 0[04]00000[04] 0[08]00000[08] 0[0c]00000[0c][ ]+................[ ]*
+ 0000 00000000 04000000 08000000 0c000000[ ]+................[ ]*
#pass
if [istarget z80-*-*] then {
# test redefinitions
run_dump_test "redef"
+# test parsing of equ definitions
+ run_dump_test "equ"
# test parsing of " and '
run_dump_test "quotes"
# test suffixes