[PATCH, commited]: Use IN_RANGE macro in target/i386

Uros Bizjak ubizjak@gmail.com
Mon Mar 26 10:44:00 GMT 2007


Hello!

This patch changes range checks to IN_RANGE macro in several places.
Patch is regression tested on i686-pc-linux-gnu. Patch is committed to
SVN.

2007-03-26  Uros Bizjak  <ubizjak@gmail.com>

	* reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
	* config/i386/constraints.md
	(define_constraint "I"): Use IN_RANGE macro.
	(define_constraint "J"): Ditto.
	(define_constraint "K"): Ditto.
	(define_constraint "M"): Ditto.
	(define_constraint "N"): Ditto.
	(define_constraint "O"): Ditto.
	* config/i386/predicates.md
	(define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
	(define_predicate "const_0_to_3_operand"): Ditto.
	(define_predicate "const_0_to_7_operand"): Ditto.
	(define_predicate "const_0_to_15_operand"): Ditto.
	(define_predicate "const_0_to_63_operand"): Ditto.
	(define_predicate "const_0_to_255_operand"): Ditto.
	(define_predicate "const_1_to_31_operand"): Ditto.
	(define_predicate "const_2_to_3_operand"): Ditto.
	(define_predicate "const_4_to_7_operand"): Ditto.

Uros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i386_in_range.diff
Type: application/octet-stream
Size: 4790 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070326/56d4629a/attachment.obj>


More information about the Gcc-patches mailing list