diff options
author | Ben Elliston <bje@au.ibm.com> | 2002-02-13 08:59:26 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2002-02-13 08:59:26 +0000 |
commit | 1ac57253535242e3484562556cb262184e38d646 (patch) | |
tree | 57e9092a38c9e94f2f9a440f8e4f0e4c9983be9c /gas/testsuite | |
parent | 34588f232a55809ee35013c5a2d4225192aab226 (diff) | |
download | gdb-1ac57253535242e3484562556cb262184e38d646.zip gdb-1ac57253535242e3484562556cb262184e38d646.tar.gz gdb-1ac57253535242e3484562556cb262184e38d646.tar.bz2 |
2002-02-12 Ben Elliston <bje@redhat.com>
* 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.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gasp/flonums.asm | 19 | ||||
-rw-r--r-- | gas/testsuite/gasp/flonums.err | 0 | ||||
-rw-r--r-- | gas/testsuite/gasp/flonums.out | 36 |
4 files changed, 61 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index dc3f40e..a057524 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-02-12 Ben Elliston <bje@redhat.com> + + * gasp/flonums.asm: New test. + * gasp/flonums.err: New result. + * gasp/flonums.out: Likewise. + 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca> * gas/hppa/reloc/reloc.exp (labelopbug.s): Change test to suit diff --git a/gas/testsuite/gasp/flonums.asm b/gas/testsuite/gasp/flonums.asm new file mode 100644 index 0000000..e6ddb5a --- /dev/null +++ b/gas/testsuite/gasp/flonums.asm @@ -0,0 +1,19 @@ +.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 diff --git a/gas/testsuite/gasp/flonums.err b/gas/testsuite/gasp/flonums.err new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/gas/testsuite/gasp/flonums.err diff --git a/gas/testsuite/gasp/flonums.out b/gas/testsuite/gasp/flonums.out new file mode 100644 index 0000000..23bde3d --- /dev/null +++ b/gas/testsuite/gasp/flonums.out @@ -0,0 +1,36 @@ +!.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 |