diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2024-06-26 13:35:58 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2024-06-26 13:40:02 +0800 |
commit | 5a10ac0e5921d5aeac58429457423b611ee325d2 (patch) | |
tree | 30fa492a2211b9aa372292ca2192effae9e436e4 /gcc | |
parent | 680eda8c74100eb957dffbcc5554230e71f25990 (diff) | |
download | gcc-5a10ac0e5921d5aeac58429457423b611ee325d2.zip gcc-5a10ac0e5921d5aeac58429457423b611ee325d2.tar.gz gcc-5a10ac0e5921d5aeac58429457423b611ee325d2.tar.bz2 |
optab: Add isnormal_optab for isnormal builtin
gcc/
* builtins.cc (interclass_mathfn_icode): Set optab to isnormal_optab
for isnormal builtin.
* optabs.def (isnormal_optab): New.
* doc/md.texi (isnormal): Document.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/builtins.cc | 2 | ||||
-rw-r--r-- | gcc/doc/md.texi | 6 | ||||
-rw-r--r-- | gcc/optabs.def | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/gcc/builtins.cc b/gcc/builtins.cc index 03634cd..0b90289 100644 --- a/gcc/builtins.cc +++ b/gcc/builtins.cc @@ -2463,6 +2463,8 @@ interclass_mathfn_icode (tree arg, tree fndecl) builtin_optab = isfinite_optab; break; case BUILT_IN_ISNORMAL: + builtin_optab = isnormal_optab; + break; CASE_FLT_FN (BUILT_IN_FINITE): case BUILT_IN_FINITED32: case BUILT_IN_FINITED64: diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 3eb4216..4fd7da0 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -8563,6 +8563,12 @@ 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}. +@cindex @code{isnormal@var{m}2} instruction pattern +@item @samp{isnormal@var{m}2} +Return 1 if operand 1 is a normal 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 diff --git a/gcc/optabs.def b/gcc/optabs.def index 9514a31..2f36ed4 100644 --- a/gcc/optabs.def +++ b/gcc/optabs.def @@ -353,6 +353,7 @@ OPTAB_D (hypot_optab, "hypot$a3") OPTAB_D (ilogb_optab, "ilogb$a2") OPTAB_D (isinf_optab, "isinf$a2") OPTAB_D (isfinite_optab, "isfinite$a2") +OPTAB_D (isnormal_optab, "isnormal$a2") OPTAB_D (issignaling_optab, "issignaling$a2") OPTAB_D (ldexp_optab, "ldexp$a3") OPTAB_D (log10_optab, "log10$a2") |