mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
1ac5725353
* NEWS: Document floating point number handling in gasp. * gasp.c: Include <assert.h> and "xregex.h". (is_flonum): New function. (chew_flownum): Likewise. (change_base): Consume flonums from the input, where possible. * doc/gasp.texi (Constants): Document floating point numbers. [testsuite/ChangeLog] * gasp/flonums.asm: New test. * gasp/flonums.err: New result. * gasp/flonums.out: Likewise.
20 lines
287 B
NASM
20 lines
287 B
NASM
.RADIX Q
|
|
! test floats now
|
|
.float -H'C
|
|
.float -9.0
|
|
.float 0.9
|
|
.float +0.9
|
|
.float +.9
|
|
.float -00.0009
|
|
.float -2.900
|
|
.float 1.1e+10
|
|
.float +1.1e+10
|
|
.float +1.1e-10
|
|
.float -1.1E+10
|
|
.float +1.1E+1000
|
|
.float +1.1E+0001 10
|
|
.float 11.11E-10 10
|
|
.float H'C.3
|
|
.float H'C.H'C
|
|
.END
|