testsuite: gcc.c-torture/execute/ieee/cdivchkld.c needs fmaxl
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 6 May 2021 09:05:52 +0000 (09:05 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 6 May 2021 09:05:52 +0000 (09:05 +0000)
The new test gcc.c-torture/execute/ieee/cdivchkld.c needs fmaxl(),
which may not be available, for instance on aarch64-elf with newlib.
As discussed in the PR, requiring c99_runtime enables to skip the test
in this case.

2021-05-06  Christophe Lyon  <christophe.lyon@linaro.org>

PR testsuite/100355
gcc/testsuite/
* gcc.c-torture/execute/ieee/cdivchkld.x: New.

gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkld.x [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkld.x b/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkld.x
new file mode 100644 (file)
index 0000000..f798152
--- /dev/null
@@ -0,0 +1,4 @@
+if { [check_effective_target_c99_runtime] } {
+    return 0
+}
+return 1