This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, libgcc2, i386]: Enable TFmode / TCmode support in libgcc2
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Ian Lance Taylor <iant at google dot com>, marius dot cornea at intel dot com
- Date: Thu, 14 Jun 2007 16:50:12 -0700
- Subject: Re: [PATCH, libgcc2, i386]: Enable TFmode / TCmode support in libgcc2
- References: <4671A7C1.6030709@gmail.com>
On Thu, Jun 14, 2007 at 10:40:33PM +0200, Uros Bizjak wrote:
>
> This patch is also needed to activate TFmode support for Intel's BID
> library [1].
>
With Intel BID library, I got the following on Linux/Intel64:
bash-3.1$ cat x.c
#include <stdio.h>
__float128 testld (_Decimal128 a) { return a; }
__float128 testd (_Decimal64 a) { return a; }
__float128 testsd (_Decimal32 a) { return a; }
int
main()
{
_Decimal128 a = 1.2;
_Decimal64 b = 1.3;
_Decimal32 c = 1.4;
printf ("%f\n", (double) testld (a));
printf ("%f\n", (double) testd (b));
printf ("%f\n", (double) testsd (c));
return 0;
}
bash-3.1$ rm x
bash-3.1$ cat x.c
#include <stdio.h>
__float128 testld (_Decimal128 a) { return a; }
__float128 testd (_Decimal64 a) { return a; }
__float128 testsd (_Decimal32 a) { return a; }
int
main()
{
_Decimal128 a = 1.2;
_Decimal64 b = 1.3;
_Decimal32 c = 1.4;
printf ("%f\n", (double) testld (a));
printf ("%f\n", (double) testd (b));
printf ("%f\n", (double) testsd (c));
return 0;
}
bash-3.1$ make
/export/build/gnu/gcc/build-x86_64-linux/prev-gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/prev-gcc/ -O2 -g x.c -o
x
./x
1.200000
1.300000
1.400000
bash-3.1$
H.J.