testsuite: require c99 runtime for trigonometric optimisation tests
authorPat Bernardi <bernardi@adacore.com>
Wed, 19 Aug 2020 09:05:21 +0000 (10:05 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 19 Aug 2020 09:05:21 +0000 (10:05 +0100)
commit7dbcb569b2793be8748050f91ea8a089bc2623c8
tree10fcb9c7682f9edb2ffef0de42365faf494d065b
parent9eaf11417b6a017b21a5052a74be3d2a251cfb78
testsuite: require c99 runtime for trigonometric optimisation tests

A number of optimisation that simplify trigonometric expressions are only
performed when the compiler knows the target has a C99 libm available.
Since targets like *-elf may not have such a libm, a C99 runtime requirement
is added to these tests.

2020-08-19  Pat Bernardi  <bernardi@adacore.com>

gcc/testsuite/ChangeLog

* gcc.dg/sinatan-2.c: Add dg-require-effective-target c99_runtime.
* gcc.dg/sinhovercosh-1.c: Likewise.
* gcc.dg/tanhbysinh.c: Likewise.
gcc/testsuite/gcc.dg/sinatan-2.c
gcc/testsuite/gcc.dg/sinhovercosh-1.c
gcc/testsuite/gcc.dg/tanhbysinh.c