diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2024-06-26 13:35:10 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2024-06-26 13:40:02 +0800 |
commit | 680eda8c74100eb957dffbcc5554230e71f25990 (patch) | |
tree | bbe0a73306656194dd6eea02adbcb7c99ec9487b /gcc/doc | |
parent | eed2027843409bf3afd03053d95760bdacb8fbf6 (diff) | |
download | gcc-680eda8c74100eb957dffbcc5554230e71f25990.zip gcc-680eda8c74100eb957dffbcc5554230e71f25990.tar.gz gcc-680eda8c74100eb957dffbcc5554230e71f25990.tar.bz2 |
optab: Add isfinite_optab for isfinite builtin
gcc/
* builtins.cc (interclass_mathfn_icode): Set optab to isfinite_optab
for isfinite builtin.
* optabs.def (isfinite_optab): New.
* doc/md.texi (isfinite): Document.
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/md.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 5730bda..3eb4216 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -8557,6 +8557,12 @@ operand 2, greater than operand 2 or is unordered with operand 2. This pattern is not allowed to @code{FAIL}. +@cindex @code{isfinite@var{m}2} instruction pattern +@item @samp{isfinite@var{m}2} +Return 1 if operand 1 is a finite floating point number and 0 +otherwise. @var{m} is a scalar floating point mode. Operand 0 +has mode @code{SImode}, and operand 1 has mode @var{m}. + @end table @end ifset |