i386.md (addqi_1_slp): Fix output template.

* i386.md (addqi_1_slp): Fix output template.
	(subqi_1_slp): Fix type.

From-SVN: r59230
This commit is contained in:
Jan Hubicka 2002-11-18 21:32:56 +01:00 committed by Jan Hubicka
parent d9d71657bd
commit 9519920205
2 changed files with 11 additions and 6 deletions

View 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> Sun Nov 17 00:01:28 CET 2002 Jan Hubicka <jh@suse.cz>
* calls.c (alloca_call_p): New global function. * calls.c (alloca_call_p): New global function.

View File

@ -6049,16 +6049,16 @@
switch (get_attr_type (insn)) switch (get_attr_type (insn))
{ {
case TYPE_INCDEC: case TYPE_INCDEC:
if (operands[2] == const1_rtx) if (operands[1] == const1_rtx)
return "inc{b}\t%0"; return "inc{b}\t%0";
else if (operands[2] == constm1_rtx) else if (operands[1] == constm1_rtx)
return "dec{b}\t%0"; return "dec{b}\t%0";
abort(); abort();
default: default:
/* Make things pretty and `subl $4,%eax' rather than `addl $-4, %eax'. */ /* Make things pretty and `subl $4,%eax' rather than `addl $-4, %eax'. */
if (GET_CODE (operands[2]) == CONST_INT if (GET_CODE (operands[1]) == CONST_INT
&& INTVAL (operands[2]) < 0) && INTVAL (operands[1]) < 0)
{ {
operands[2] = GEN_INT (-INTVAL (operands[2])); operands[2] = GEN_INT (-INTVAL (operands[2]));
return "sub{b}\t{%1, %0|%0, %1}"; return "sub{b}\t{%1, %0|%0, %1}";
@ -6069,7 +6069,7 @@
[(set (attr "type") [(set (attr "type")
(if_then_else (match_operand:QI 2 "incdec_operand" "") (if_then_else (match_operand:QI 2 "incdec_operand" "")
(const_string "incdec") (const_string "incdec")
(const_string "alu"))) (const_string "alu1")))
(set_attr "mode" "QI")]) (set_attr "mode" "QI")])
(define_insn "*addqi_2" (define_insn "*addqi_2"
@ -6611,7 +6611,7 @@
"(! TARGET_PARTIAL_REG_STALL || optimize_size) "(! TARGET_PARTIAL_REG_STALL || optimize_size)
&& (GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM)" && (GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM)"
"sub{b}\t{%1, %0|%0, %1}" "sub{b}\t{%1, %0|%0, %1}"
[(set_attr "type" "alu") [(set_attr "type" "alu1")
(set_attr "mode" "QI")]) (set_attr "mode" "QI")])
(define_insn "*subqi_2" (define_insn "*subqi_2"