[testsuite] Add missing fenv effective target to fp-int-convert-timode* tests.
2019-01-25 Christophe Lyon <christophe.lyon@linaro.org> gcc/ * doc/sourcebuild.texi (Environment attributes): Add fenv and fenv_exceptions description. 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org> gcc/testsuite/ * lib/target-supports.exp (check_effective_target_fenv): New. * gcc.dg/torture/fp-int-convert-float128-timode-3.c: Add missing fenv effective target. * gcc.dg/torture/fp-int-convert-timode-1.c: Likewise. * gcc.dg/torture/fp-int-convert-timode-2.c: Likewise. * gcc.dg/torture/fp-int-convert-timode-3.c: Likewise. * gcc.dg/torture/fp-int-convert-timode-4.c: Likewise. From-SVN: r268266
This commit is contained in:
parent
f73dc00604
commit
55ac4e01c1
9 changed files with 35 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
|
||||
|
||||
* doc/sourcebuild.texi (Environment attributes): Add fenv and
|
||||
fenv_exceptions description.
|
||||
|
||||
2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
|
||||
|
||||
PR rtl-optimization/87763
|
||||
|
|
|
@ -2128,6 +2128,13 @@ Target can truncate a file from a file descriptor, as used by
|
|||
@file{libgfortran/io/unix.c:fd_truncate}; i.e.@: @code{ftruncate} or
|
||||
@code{chsize}.
|
||||
|
||||
@item fenv
|
||||
Target provides @file{fenv.h} include file.
|
||||
|
||||
@item fenv_exceptions
|
||||
Target supports @file{fenv.h} with all the standard IEEE exceptions
|
||||
and floating-point exceptions are raised by arithmetic operations.
|
||||
|
||||
@item freestanding
|
||||
Target is @samp{freestanding} as defined in section 4 of the C99 standard.
|
||||
Effectively, it is a target which supports no extra headers or libraries
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
|
||||
|
||||
* lib/target-supports.exp (check_effective_target_fenv): New.
|
||||
* gcc.dg/torture/fp-int-convert-float128-timode-3.c: Add missing
|
||||
fenv effective target.
|
||||
* gcc.dg/torture/fp-int-convert-timode-1.c: Likewise.
|
||||
* gcc.dg/torture/fp-int-convert-timode-2.c: Likewise.
|
||||
* gcc.dg/torture/fp-int-convert-timode-3.c: Likewise.
|
||||
* gcc.dg/torture/fp-int-convert-timode-4.c: Likewise.
|
||||
|
||||
2019-01-25 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/86865
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
/* { dg-require-effective-target __float128 } */
|
||||
/* { dg-require-effective-target base_quadfloat_support } */
|
||||
/* { dg-require-effective-target int128 } */
|
||||
/* { dg-require-effective-target fenv } */
|
||||
/* { dg-options "-frounding-math" } */
|
||||
/* { dg-add-options __float128 } */
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
float. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target int128 } */
|
||||
/* { dg-require-effective-target fenv } */
|
||||
/* { dg-options "-frounding-math" } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
float. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target int128 } */
|
||||
/* { dg-require-effective-target fenv } */
|
||||
/* { dg-options "-frounding-math" } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
float. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target int128 } */
|
||||
/* { dg-require-effective-target fenv } */
|
||||
/* { dg-options "-frounding-math" } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
float. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target int128 } */
|
||||
/* { dg-require-effective-target fenv } */
|
||||
/* { dg-options "-frounding-math" } */
|
||||
|
||||
#include <fenv.h>
|
||||
|
|
|
@ -8536,6 +8536,14 @@ proc check_effective_target_avr_tiny { } {
|
|||
}
|
||||
}
|
||||
|
||||
# Return 1 if <fenv.h> is available.
|
||||
|
||||
proc check_effective_target_fenv {} {
|
||||
return [check_no_compiler_messages fenv object {
|
||||
#include <fenv.h>
|
||||
} [add_options_for_ieee "-std=gnu99"]]
|
||||
}
|
||||
|
||||
# Return 1 if <fenv.h> is available with all the standard IEEE
|
||||
# exceptions and floating-point exceptions are raised by arithmetic
|
||||
# operations. (If the target requires special options for "inexact"
|
||||
|
|
Loading…
Add table
Reference in a new issue