[PATCH] Use reversed_comparison_code in flow.c ifcvt.c

Richard Earnshaw rearnsha@buzzard.freeserve.co.uk
Sun Aug 29 23:11:00 GMT 2004

This patch fixes those places in flow.c and ifcvt.c that might be handling 
a floating-point comparison so that they use reversed_comparison_code 
instead of reverse_condition.

Richard, Aldy, 
Since reversed_comparison_code calls REVERSE_CONDITION I wonder whether 
this could be taught to handle the FRV port peculiarities here (maybe by 
using a special CC mode and making REVERSE_CONDITION return UNKNOWN).  
That would make REVERSE_CONDEXEC_PREDICATES_P redundant, which can only be 
a good thing.

Bootstrapped on i386-netbsdelf and arm-linux-gnu.  No regressions.

2004-08-29  Richard Earnshaw  <rearnsha@arm.com>

	* 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fltcmp-2.patch
Type: text/x-patch
Size: 5771 bytes
Desc: fltcmp-2.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040829/5dac72c1/attachment.bin>

More information about the Gcc-patches mailing list