From e5a7acddf687a7c538d53108942ff3d0161ef6aa Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 22 Nov 2000 17:37:24 +0100 Subject: * gcc.c-torture/execute/ieee/20001122-1.c: New test. From-SVN: r37657 --- gcc/testsuite/ChangeLog | 4 ++++ .../gcc.c-torture/execute/ieee/20001122-1.c | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6804405..9ff1d8f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-11-22 Jakub Jelinek + + * gcc.c-torture/execute/ieee/20001122-1.c: New test. + 2000-11-22 Hans-Peter Nilsson * lib/gcc-dg.exp: load_lib scanasm.exp. diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c new file mode 100644 index 0000000..fd7e702 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c @@ -0,0 +1,22 @@ +volatile double a, *p; + +int main () +{ + double c, d; + volatile double b; + + d = 1.0; + p = &b; + do + { + c = d; + d = c * 0.5; + b = 1 + d; + } while (b != 1.0); + + a = 1.0 + c; + if (a == 1.0) + abort(); + + exit (0); +} -- cgit v1.1