This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: Implement C _FloatN, _FloatNx types [version 6]


On Aug 17 2016, Joseph Myers <joseph@codesourcery.com> wrote:

> Index: gcc/testsuite/gcc.dg/torture/fp-int-convert-float128x-timode.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/torture/fp-int-convert-float128x-timode.c	(nonexistent)
> +++ gcc/testsuite/gcc.dg/torture/fp-int-convert-float128x-timode.c	(working copy)
> @@ -0,0 +1,16 @@
> +/* Test floating-point conversions.  _Float128x type with TImode.  */
> +/* { dg-do run } */
> +/* { dg-options "" } */
> +/* { dg-add-options float128x } */
> +/* { dg-require-effective-target float128x_runtime } */
> +
> +#define __STDC_WANT_IEC_60559_TYPES_EXT__
> +#include <float.h>
> +#include "fp-int-convert.h"
> +
> +int
> +main (void)
> +{
> +  TEST_I_F(TItype, UTItype, _Float128, FLT128X_MANT_DIG, FLT128X_MAX_EXP);

s/_Float128/_Float128x/

> Index: gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c	(nonexistent)
> +++ gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c	(working copy)
> @@ -0,0 +1,16 @@
> +/* Test floating-point conversions.  _Float32x type with TImode.  */
> +/* { dg-do run } */
> +/* { dg-options "" } */
> +/* { dg-add-options float32x } */
> +/* { dg-require-effective-target float32x_runtime } */
> +
> +#define __STDC_WANT_IEC_60559_TYPES_EXT__
> +#include <float.h>
> +#include "fp-int-convert.h"
> +
> +int
> +main (void)
> +{
> +  TEST_I_F(TItype, UTItype, _Float32, FLT32X_MANT_DIG, FLT32X_MAX_EXP);

s/_Float32/_Float32x/

> Index: gcc/testsuite/gcc.dg/torture/fp-int-convert-float64x-timode.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/torture/fp-int-convert-float64x-timode.c	(nonexistent)
> +++ gcc/testsuite/gcc.dg/torture/fp-int-convert-float64x-timode.c	(working copy)
> @@ -0,0 +1,16 @@
> +/* Test floating-point conversions.  _Float64x type with TImode.  */
> +/* { dg-do run } */
> +/* { dg-options "" } */
> +/* { dg-add-options float64x } */
> +/* { dg-require-effective-target float64x_runtime } */
> +
> +#define __STDC_WANT_IEC_60559_TYPES_EXT__
> +#include <float.h>
> +#include "fp-int-convert.h"
> +
> +int
> +main (void)
> +{
> +  TEST_I_F(TItype, UTItype, _Float64, FLT64X_MANT_DIG, FLT64X_MAX_EXP);

s/_Float64/_Float64x/

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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