This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, libgcc2, i386]: Enable TFmode / TCmode support in libgcc2


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]