Bug 25377 - [Z80][PATCH] 16 bit FP support and documentation update
Summary: [Z80][PATCH] 16 bit FP support and documentation update
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: 2.34
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-13 15:15 UTC by Sergey Belyashov
Modified: 2020-01-14 13:16 UTC (History)
2 users (show)

See Also:
Host:
Target: z80-unknown-*
Build:
Last reconfirmed:


Attachments
16 bit FP support and documentation update (5.75 KB, patch)
2020-01-13 15:15 UTC, Sergey Belyashov
Details | Diff
16 bit FP support and documentation update (5.92 KB, patch)
2020-01-14 09:40 UTC, Sergey Belyashov
Details | Diff
16 bit FP support and documentation update (6.73 KB, patch)
2020-01-14 11:06 UTC, Sergey Belyashov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Belyashov 2020-01-13 15:15:41 UTC
Created attachment 12191 [details]
16 bit FP support and documentation update

This patch:
* fix incorrect disassemble of invalid eZ80 opcode prefix sequence (now emitted ".db" instead of "nop")
* add test for fix above
* add support for half precision FP numbers (16 bit, ieee754 compatible)
* update GAS documentation
Comment 1 Sergey Belyashov 2020-01-14 09:40:46 UTC
Created attachment 12197 [details]
16 bit FP support and documentation update

Fixed tests.
Comment 2 Sergey Belyashov 2020-01-14 11:06:32 UTC
Created attachment 12198 [details]
16 bit FP support and documentation update

Fix some failing GAS tests
Comment 3 Sourceware Commits 2020-01-14 13:15:25 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7a6bf3becbe3e0ce47d2681edcfe7adcb67fe4e2

commit 7a6bf3becbe3e0ce47d2681edcfe7adcb67fe4e2
Author: Sergey Belyashov <sergey.belyashov@gmail.com>
Date:   Tue Jan 14 13:13:57 2020 +0000

    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.
Comment 4 Nick Clifton 2020-01-14 13:16:40 UTC
Hi Sergey,

  Thanks for the fixes.  I have checked them in.

Cheers
  Nick