OSDN Git Service

* rtx-funcs.scm (nan,qnan,snan): New rtl functions.
[pf3gnuchains/pf3gnuchains4x.git] / cgen / doc / rtl.texi
index 70702c4..0b69b1c 100644 (file)
@@ -2787,6 +2787,19 @@ Perform a mathematical operation.
 
 @samp{mathop} is one of @code{sqrt}, @code{cos}, @code{sin}.
 
+@item (*nan mode operand)
+Return a boolean indicating if @samp{operand} is a NaN.
+There are three versions.
+
+@itemize @bullet
+@item (nan operand)
+Test whether @samp{operand} is any kind of NaN.
+@item (qnan operand)
+Test whether @samp{operand} is a quiet NaN.
+@item (snan operand)
+Test whether @samp{operand} is a signalling NaN.
+@end itemize
+
 @item (if mode condition then [else])
 Standard @code{if} statement.