[PATCH] testsuite: constraint some of fp tests to hard_float

These tests validate fp conversions with various rounding modes which
would not work on soft-float ABIs.

On -march=rv64imac/-mabi=lp64 this reduces 5 unique failures (overall 35
due to multi flag combination builds)

gcc/testsuite/Changelog:
	* gcc.dg/torture/fp-double-convert-float-1.c: Add
	dg-require-effective-target hard_float.
	* gcc.dg/torture/fp-int-convert-timode-3.c: Ditto.
	* gcc.dg/torture/fp-int-convert-timode-4.c: Ditto.
	* gcc.dg/torture/fp-uint64-convert-double-1.c: Ditto.
	* gcc.dg/torture/fp-uint64-convert-double-2.c: Ditto.
This commit is contained in:
Vineet Gupta 2022-06-26 15:03:52 -04:00 committed by Jeff Law
parent 1f237573ca
commit ff01849dcc
5 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
/* PR57245 */
/* { dg-do run } */
/* { dg-require-effective-target fenv } */
/* { dg-require-effective-target hard_float } */
/* { dg-additional-options "-frounding-math" } */
#include <fenv.h>

View file

@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
/* { dg-require-effective-target fenv } */
/* { dg-require-effective-target hard_float } */
/* { dg-options "-frounding-math" } */
#include <fenv.h>

View file

@ -3,6 +3,7 @@
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
/* { dg-require-effective-target fenv } */
/* { dg-require-effective-target hard_float } */
/* { dg-options "-frounding-math" } */
#include <fenv.h>

View file

@ -1,6 +1,7 @@
/* PR84407 */
/* { dg-do run } */
/* { dg-require-effective-target fenv } */
/* { dg-require-effective-target hard_float } */
/* { dg-additional-options "-frounding-math -fexcess-precision=standard" } */
#include <fenv.h>

View file

@ -1,6 +1,7 @@
/* PR84407 */
/* { dg-do run } */
/* { dg-require-effective-target fenv } */
/* { dg-require-effective-target hard_float } */
/* { dg-additional-options "-frounding-math" } */
#include <fenv.h>