Commit f3cd0185 by DJ Delorie Committed by DJ Delorie

stormy16.c (xstormy16_expand_arith): Make sure we always emit at least one insn.

* config/stormy16/stormy16.c (xstormy16_expand_arith): Make
sure we always emit at least one insn.

From-SVN: r64644
parent 70e5e841
2003-03-21 DJ Delorie <dj@redhat.com>
* config/stormy16/stormy16.c (xstormy16_expand_arith): Make
sure we always emit at least one insn.
2003-03-21 Christopher Faylor <cgf@redhat.com> 2003-03-21 Christopher Faylor <cgf@redhat.com>
* config.gcc (i[34567]86-*-cygwin*): Use new common makefile * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
......
...@@ -1971,6 +1971,11 @@ xstormy16_expand_arith (mode, code, dest, src0, src1, carry) ...@@ -1971,6 +1971,11 @@ xstormy16_expand_arith (mode, code, dest, src0, src1, carry)
firstloop = 0; firstloop = 0;
emit (insn); emit (insn);
} }
/* If we emit nothing, try_split() will think we failed. So emit
something that does nothing and can be optimized away. */
if (firstloop)
emit (gen_nop ());
} }
/* Return 1 if OP is a shift operator. */ /* Return 1 if OP is a shift operator. */
......
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