mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +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.
37 lines
573 B
Plaintext
37 lines
573 B
Plaintext
!.RADIX Q
|
|
! ! test floats now
|
|
! test floats now
|
|
! .float -H'C
|
|
.float -12
|
|
! .float -9.0
|
|
.float -9.0
|
|
! .float 0.9
|
|
.float 0.9
|
|
! .float +0.9
|
|
.float +0.9
|
|
! .float +.9
|
|
.float +.9
|
|
! .float -00.0009
|
|
.float -00.0009
|
|
! .float -2.900
|
|
.float -2.900
|
|
! .float 1.1e+10
|
|
.float 1.1e+10
|
|
! .float +1.1e+10
|
|
.float +1.1e+10
|
|
! .float +1.1e-10
|
|
.float +1.1e-10
|
|
! .float -1.1E+10
|
|
.float -1.1E+10
|
|
! .float +1.1E+1000
|
|
.float +1.1E+1000
|
|
! .float +1.1E+0001 10
|
|
.float +1.1E+0001 8
|
|
! .float 11.11E-10 10
|
|
.float 11.11E-10 8
|
|
! .float H'C.3
|
|
.float 12.3
|
|
! .float H'C.H'C
|
|
.float 12.12
|
|
!.END
|