diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2024-08-15 11:19:10 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2024-08-15 11:19:10 +0800 |
commit | cd0930768ff936b681135bf8873e7f7b796a4ed9 (patch) | |
tree | e51d104949e25c74000e0ba8b31430b4ce73f440 /gcc/fortran/frontend-passes.cc | |
parent | 4d2e8fcdaf325357591326812fd032ce6dea44e5 (diff) | |
download | gcc-cd0930768ff936b681135bf8873e7f7b796a4ed9.zip gcc-cd0930768ff936b681135bf8873e7f7b796a4ed9.tar.gz gcc-cd0930768ff936b681135bf8873e7f7b796a4ed9.tar.bz2 |
Value Range: Add range op for builtin isinf
The builtin isinf is not folded at front end if the corresponding optab
exists. So the range op for isinf is needed for value range analysis.
This patch adds range op for builtin isinf.
gcc/
PR target/114678
* gimple-range-op.cc (class cfn_isinf): New.
(op_cfn_isinf): New variables.
(gimple_range_op_handler::maybe_builtin_call): Handle
CASE_FLT_FN (BUILT_IN_ISINF).
gcc/testsuite/
PR target/114678
* gcc.dg/tree-ssa/range-isinf.c: New test.
* gcc.dg/tree-ssa/range-sincos.c: Remove xfail for s390.
* gcc.dg/tree-ssa/vrp-float-abs-1.c: Likewise.
Diffstat (limited to 'gcc/fortran/frontend-passes.cc')
0 files changed, 0 insertions, 0 deletions