@@ -2462,6 +2462,7 @@ interclass_mathfn_icode (tree arg, tree fndecl)
case BUILT_IN_ISFINITE:
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:
@@ -8566,6 +8566,15 @@ and to 0 otherwise.
If this pattern @code{FAIL}, a call to the library function
@code{isfinite} is used.
+@cindex @code{isnormal@var{m}2} instruction pattern
+@item @samp{isnormal@var{m}2}
+Set operand 0 to nonzero if operand 1 is a normal @code{SFmode},
+@code{DFmode}, or @code{TFmode} floating point number and to 0
+otherwise.
+
+If this pattern @code{FAIL}, a call to the library function
+@code{isnormal} is used.
+
@end table
@end ifset
@@ -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")