From 15dce8121ca2dd2fab01f249c714ea3726cecc41 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Sun, 29 Aug 2004 22:10:44 +0000 Subject: flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not just the codes, call reversed_comparison_code (). * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not just the codes, call reversed_comparison_code (). (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P. (not_reg_cond): Use reversed_comparison_code. (and_reg_cond): Likewise. * ifcvt.c (cond_exec_process_if_block): Likewise. * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation. From-SVN: r86737 --- gcc/doc/tm.texi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index b15cb53..2a87398 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -5240,16 +5240,17 @@ like: @end smallexample @end defmac -@defmac REVERSE_CONDEXEC_PREDICATES_P (@var{code1}, @var{code2}) +@defmac REVERSE_CONDEXEC_PREDICATES_P (@var{op1}, @var{op2}) A C expression that returns true if the conditional execution predicate -@var{code1} is the inverse of @var{code2} and vice versa. Define this to -return 0 if the target has conditional execution predicates that cannot be -reversed safely. If no expansion is specified, this macro is defined as -follows: +@var{op1}, a comparison operation, is the inverse of @var{op2} and vice +versa. Define this to return 0 if the target has conditional execution +predicates that cannot be reversed safely. There is no need to validate +that the arguments of op1 and op2 are the same, this is done separately. +If no expansion is specified, this macro is defined as follows: @smallexample #define REVERSE_CONDEXEC_PREDICATES_P (x, y) \ - ((x) == reverse_condition (y)) + (GET_CODE ((x)) == reversed_comparison_code ((y), NULL)) @end smallexample @end defmac -- cgit v1.1