From 1ac57253535242e3484562556cb262184e38d646 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Wed, 13 Feb 2002 08:59:26 +0000 Subject: 2002-02-12 Ben Elliston * NEWS: Document floating point number handling in gasp. * gasp.c: Include 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. --- gas/testsuite/gasp/flonums.asm | 19 +++++++++++++++++++ gas/testsuite/gasp/flonums.err | 0 gas/testsuite/gasp/flonums.out | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 gas/testsuite/gasp/flonums.asm create mode 100644 gas/testsuite/gasp/flonums.err create mode 100644 gas/testsuite/gasp/flonums.out (limited to 'gas/testsuite/gasp') 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 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 -- cgit v1.1