diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-04-08 15:18:49 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2009-04-08 15:18:49 +0000 |
commit | c6963675ebad4a3396521df8e49d558a04cf12b3 (patch) | |
tree | c22913f141a234b21391cc1fee6f3ed3aa5a1a7e /gcc/doc | |
parent | 6d07ad98760362cd9615c673cf8302908ce60980 (diff) | |
download | gcc-c6963675ebad4a3396521df8e49d558a04cf12b3.zip gcc-c6963675ebad4a3396521df8e49d558a04cf12b3.tar.gz gcc-c6963675ebad4a3396521df8e49d558a04cf12b3.tar.bz2 |
recog.c (ordered_comparison_operator): New.
2009-04-08 Paolo Bonzini <bonzini@gnu.org>
* recog.c (ordered_comparison_operator): New.
* gensupport.c (std_preds): Add it.
* doc/md.texi (Machine-Independent Predicates): Document it.
From-SVN: r145748
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/md.texi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 18a1a4d..25de8b1 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -860,7 +860,7 @@ valid for @var{mode}. @end defun @noindent -Finally, there is one generic operator predicate. +Finally, there are two generic operator predicates. @defun comparison_operator This predicate matches any expression which performs an arithmetic @@ -868,6 +868,14 @@ comparison in @var{mode}; that is, @code{COMPARISON_P} is true for the expression code. @end defun +@defun ordered_comparison_operator +This predicate matches any expression which performs an arithmetic +comparison in @var{mode} and whose expression code is valid for integer +modes; that is, the expression code will be one of @code{eq}, @code{ne}, +@code{lt}, @code{ltu}, @code{le}, @code{leu}, @code{gt}, @code{gtu}, +@code{ge}, @code{geu}. +@end defun + @node Defining Predicates @subsection Defining Machine-Specific Predicates @cindex defining predicates |