From: Will Cohen Date: Mon, 26 Feb 2001 19:57:04 +0000 (+0000) Subject: 20010226-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3914b81a45ea397fd8bbd278d479e601fa4608f6;p=gcc.git 20010226-1.c: New test. 2001-02-26 Will Cohen * gcc.c-torture/execute/ieee/20010226-1.c: New test. From-SVN: r40071 --- 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(); +}