[PATCH] testsuite: constraint some of fp tests to hard_float
authorVineet Gupta <vineetg@rivosinc.com>
Sun, 26 Jun 2022 19:03:52 +0000 (15:03 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Sun, 26 Jun 2022 19:03:52 +0000 (15:03 -0400)
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.

gcc/testsuite/gcc.dg/torture/fp-double-convert-float-1.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-3.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-4.c
gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-1.c
gcc/testsuite/gcc.dg/torture/fp-uint64-convert-double-2.c

index ec23274..1c28a9e 100644 (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>
index 707d539..6f9a8d3 100644 (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>
index 09600f9..15f478d 100644 (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>
index fadad8c..0c7bf00 100644 (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>
index 952f96b..ac24b35 100644 (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>