diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-08-06 16:01:39 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2025-09-04 14:35:30 +0000 |
commit | e494101a23c4b601e0608b9020f75ed213e6576d (patch) | |
tree | 2d3a31aa01f3406a2a14a693ab993c2e7da42a74 /gcc/testsuite/gcc.dg/cpp/charconst-4.c | |
parent | bad57f78679e485cc18fd03d4df8e3e15d009544 (diff) | |
download | gcc-e494101a23c4b601e0608b9020f75ed213e6576d.zip gcc-e494101a23c4b601e0608b9020f75ed213e6576d.tar.gz gcc-e494101a23c4b601e0608b9020f75ed213e6576d.tar.bz2 |
optab: Add optab for isnan
Add an optab for isnan. This requires changes to the existing folding code
to extend the interclass_mathfn infrastructure to support BUILT_IN_ISNAN.
It now checks for a valid optab before emitting the generic expansion.
There is no change if no optab is defined. Update documentation.
gcc:
* builtins.cc (interclass_mathfn_icode): Add support for isnan
optab.
(expand_builtin): Add BUILT_IN_ISNAN to expand isnan optab.
(fold_builtin_interclass_mathfn): Expand BUILT_IN_ISNAN only after
checking for a valid optab.
(fold_builtin_classify): Move generic BUILT_IN_ISNAN expansion
to fold_builtin_interclass_mathfn.
(fold_builtin_1): For BUILT_IN_ISNAN first try fold_builtin_classify,
then fold_builtin_interclass_mathfn.
* optabs.def: Add isnan optab.
* doc/md.texi: Document isnan.
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/charconst-4.c')
0 files changed, 0 insertions, 0 deletions