Apply LIT(x) to floating point literals in libm-test.c
commit89385134849a9a4aa66f5b2ebaedaad7d63a11db
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Wed, 8 Jun 2016 19:28:07 +0000 (8 14:28 -0500)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Wed, 8 Jun 2016 19:28:25 +0000 (8 14:28 -0500)
tree4e39479e8e788091a98a3864b3015249d454acca
parent1e8a8875d69e36d2890b223ffe8853a8ff0c9512
Apply LIT(x) to floating point literals in libm-test.c

With the exception of the second argument of nexttoward,
any suffixes should be stripped from the test input, and
the macro LIT(x) should be applied to use the correct
suffix for the type being tested.

This adds a new argument type "j" to gen-test-libm.pl
to signify an argument to a test input which does not
require fixup.  The test cases of nexttoward have
been updated to use this new feature.

This applies post-processing to all of the test inputs
through gen-libm-test.pl to strip literal suffixes and
apply the LIT(x) macro, with one exception stated above.
This seems a bit cleaner than tossing the macro onto
everything, albeit slightly more obfuscated.
ChangeLog
math/gen-libm-test.pl
math/libm-test.inc