reorg.c (fill_slots_from_thread): Don't call eligible_for_delay with an insn with...
authorJeff Law <law@gcc.gnu.org>
Thu, 12 Dec 1996 18:05:55 +0000 (11:05 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 12 Dec 1996 18:05:55 +0000 (11:05 -0700)
        * reorg.c (fill_slots_from_thread): Don't call eligible_for_delay
        with an insn with asm operands.

From-SVN: r13297

gcc/reorg.c

index beec1681cb437044891aaf4bbee05e15a64c96f9..637830bf62048d85b46ffa95865389eba1183da3 100644 (file)
@@ -3696,7 +3696,10 @@ fill_slots_from_thread (insn, condition, thread, opposite_thread, likely,
      depend on the destination register.  If so, try to place the opposite
      arithmetic insn after the jump insn and put the arithmetic insn in the
      delay slot.  If we can't do this, return.  */
-  if (delay_list == 0 && likely && new_thread && GET_CODE (new_thread) == INSN)
+  if (delay_list == 0 && likely && new_thread
+      && GET_CODE (new_thread) == INSN
+      && GET_CODE (PATTERN (new_thread)) != ASM_INPUT
+      && asm_noperands (PATTERN (new_thread)) < 0)
     {
       rtx pat = PATTERN (new_thread);
       rtx dest;