From 3914b81a45ea397fd8bbd278d479e601fa4608f6 Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Mon, 26 Feb 2001 19:57:04 +0000 Subject: [PATCH] 20010226-1.c: New test. 2001-02-26 Will Cohen * gcc.c-torture/execute/ieee/20010226-1.c: New test. From-SVN: r40071 --- gcc/testsuite/ChangeLog | 4 ++++ .../gcc.c-torture/execute/ieee/20010226-1.c | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/ieee/20010226-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b16a3f6d875..26dbca41813 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-02-26 Will Cohen + + * gcc.c-torture/execute/ieee/20010226-1.c: New test. + 2001-02-26 Jeffrey Oldham * g++.old-deja/g++.pt/overload15.C: New test to stress overloaded diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20010226-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/20010226-1.c new file mode 100644 index 00000000000..91c8da3b4d9 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/20010226-1.c @@ -0,0 +1,17 @@ +long double dfrom = 1.1; +long double m1; +long double m2; +unsigned long mant_long; + +int main( ) +{ + m1 = dfrom / 2.0; + + m2 = m1 * 4294967296.0; + mant_long = ((unsigned long) m2) & 0xffffffff; + + if ( mant_long == 0x8ccccccc) + exit (0); + else + abort(); +} -- 2.30.2