From 7a6bf3becbe3e0ce47d2681edcfe7adcb67fe4e2 Mon Sep 17 00:00:00 2001 From: Sergey Belyashov Date: Tue, 14 Jan 2020 13:13:57 +0000 Subject: Fix various assembler testsuite failures for the Z80 target. PR 25377 gas * config/tc-z80.c: Add support for half precision, single precision and double precision floating point values. * config/tc-z80.h b/gas/config/tc-z80.h: Disable string escapes. * doc/as.texi: Add new z80 command line options. * doc/c-z80.texi: Document new z80 command line options. * testsuite/gas/z80/ez80_pref_dis.s: New test. * testsuite/gas/z80/ez80_pref_dis.d: New test driver. * testsuite/gas/z80/z80.exp: Run the new test. * testsuite/gas/z80/fp_math48.d: Use correct command line option. * testsuite/gas/z80/fp_zeda32.d: Likewise. * testsuite/gas/z80/strings.d: Update expected output. opcodes * z80-dis.c (suffix): Use .db instruction to generate double prefix. --- opcodes/z80-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcodes/z80-dis.c') diff --git a/opcodes/z80-dis.c b/opcodes/z80-dis.c index b6f0606a17a..7dfb5f2bd9e 100644 --- a/opcodes/z80-dis.c +++ b/opcodes/z80-dis.c @@ -738,7 +738,7 @@ suffix (struct buffer *buf, disassemble_info *info, const char *txt) || buf->data[1] == 0x5b) { /* Double prefix, or end of data. */ - info->fprintf_func (info->stream, "nop ;%s", txt); + info->fprintf_func (info->stream, ".db 0x%02x ; %s", (unsigned)buf->data[0], txt); buf->n_used = 1; return buf->n_used; } -- cgit v1.2.1