* i386.md (addqi_1_slp): Fix output template.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Nov 2002 20:32:56 +0000 (20:32 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Nov 2002 20:32:56 +0000 (20:32 +0000)
(subqi_1_slp): Fix type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59230 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.md

index 9bfbfae..a283340 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov 18 21:29:03 CET 2002  Jan Hubicka  <jh@suse.cz>
+
+       * i386.md (addqi_1_slp): Fix output template.
+       (subqi_1_slp): Fix type.
+
 Sun Nov 17 00:01:28 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * calls.c (alloca_call_p): New global function.
index 7f9de52..f50a524 100644 (file)
   switch (get_attr_type (insn))
     {
     case TYPE_INCDEC:
-      if (operands[2] == const1_rtx)
+      if (operands[1] == const1_rtx)
        return "inc{b}\t%0";
-      else if (operands[2] == constm1_rtx)
+      else if (operands[1] == constm1_rtx)
        return "dec{b}\t%0";
       abort();
 
     default:
       /* Make things pretty and `subl $4,%eax' rather than `addl $-4, %eax'.  */
-      if (GET_CODE (operands[2]) == CONST_INT
-         && INTVAL (operands[2]) < 0)
+      if (GET_CODE (operands[1]) == CONST_INT
+         && INTVAL (operands[1]) < 0)
        {
          operands[2] = GEN_INT (-INTVAL (operands[2]));
          return "sub{b}\t{%1, %0|%0, %1}";
   [(set (attr "type")
      (if_then_else (match_operand:QI 2 "incdec_operand" "")
        (const_string "incdec")
-       (const_string "alu")))
+       (const_string "alu1")))
    (set_attr "mode" "QI")])
 
 (define_insn "*addqi_2"
   "(! TARGET_PARTIAL_REG_STALL || optimize_size)
    && (GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM)"
   "sub{b}\t{%1, %0|%0, %1}"
-  [(set_attr "type" "alu")
+  [(set_attr "type" "alu1")
    (set_attr "mode" "QI")])
 
 (define_insn "*subqi_2"