Testsuite: Fix fp-int-convert-timode-1.c testism.
authorTamar Christina <tamar.christina@arm.com>
Thu, 21 Nov 2019 14:08:10 +0000 (14:08 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Thu, 21 Nov 2019 14:08:10 +0000 (14:08 +0000)
commit48ffab987ae013a642398ef4fe5ffdce71571ba5
tree89fdc6234dcd270daad048450d0ec82372436a68
parentd78b70959f334699bf556e9b8d4e0a8c12a64b46
Testsuite: Fix fp-int-convert-timode-1.c testism.

The test fp-int-convert-timode-1.c uses FE_TONEAREST without
actually checking if the target has defined it.

Like the rest of the tests I now add a check to see if the target
has actually implemented it.

This fixed Arm newlib target failures.

Regtested on aarch64-none-elf and aarch64_be-none-elf and no issues.

Committed under the GCC obvious rules.

gcc/testsuite/ChangeLog:

* gcc.dg/torture/fp-int-convert-timode-1.c: Add check for FE_TONEAREST.

From-SVN: r278552
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c