Commit ae19f5ef by Kazu Hirata Committed by Kazu Hirata

h8300.c (two_insn_adds_subs_operand): Revise a comment.

	* config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
	comment.  Accept HImode only if TARGET_H8300.

From-SVN: r49597
parent 21e09952
2002-02-07 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
comment. Accept HImode only if TARGET_H8300.
2002-02-07 Eric Christopher <echristo@redhat.com> 2002-02-07 Eric Christopher <echristo@redhat.com>
* config/mips/crtn.asm: Cleanup #ifdefs. * config/mips/crtn.asm: Cleanup #ifdefs.
......
...@@ -632,12 +632,11 @@ two_insn_adds_subs_operand (op, mode) ...@@ -632,12 +632,11 @@ two_insn_adds_subs_operand (op, mode)
} }
else else
{ {
/* A constant addition/subtraction takes 2 states in /* We do not profit directly by splitting addition or
QImode. It takes 6 states in HImode, requiring the subtraction of 3 and 4. However, since these are
constant to be loaded to a register first, and a lot more implemented as a sequence of adds or subs, they do not
in SImode. Thus the only case we can win is when either clobber (cc0) unlike a sequence of add.b and add.x. */
HImode or SImode is used. */ if (mode == HImode
if (mode != QImode
&& (value == 2 + 1 && (value == 2 + 1
|| value == 2 + 2)) || value == 2 + 2))
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment