aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2019-11-25 12:23:30 +0000
committerTamar Christina <tamar.christina@arm.com>2019-11-25 12:23:30 +0000
commit56336b62a4b6cf083f887ac716311835f72c5cde (patch)
tree4965542b355b75e8f957b966d0845502939652c6
parenta337aa9e18930f4b9a12f41c8d699a0d0f6b3468 (diff)
Testsuite: Enable fp-int-convert-timode-1.c unconditionally when int128 supported.
This removes the call to fesetround as FE_TONEAREST is the default and so the guard can be removed as well. The test will then run as long as there's int128 support. gcc/testsuite/ChangeLog: * gcc.dg/torture/fp-int-convert-timode-1.c: Always run if int128. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278680 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4c0553f0ce8..7f809547a26 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2019-11-25 Tamar Christina <tamar.christina@arm.com>
+
+ * gcc.dg/torture/fp-int-convert-timode-1.c: Always run if int128.
+
2019-11-25 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/addr14.adb: New test.
diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c
index bf7f3cedb29..971a5985357 100644
--- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c
+++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c
@@ -2,27 +2,22 @@
float. */
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
-/* { dg-require-effective-target fenv } */
/* { dg-options "-frounding-math" } */
-#include <fenv.h>
#include <stdlib.h>
int
main (void)
{
-#ifdef FE_TONEAREST
volatile unsigned long long h = 0x8000000000000000LL;
volatile unsigned long long l = 0xdLL;
volatile unsigned __int128 u128 = (((unsigned __int128) h) << 64) | l;
volatile __int128 s128 = u128;
- fesetround (FE_TONEAREST);
float fs = s128;
if (fs != -0x1p+127)
abort ();
double ds = s128;
if (ds != -0x1p+127)
abort ();
-#endif
exit (0);
}