From: m.hayes Date: Wed, 25 Nov 1998 17:14:35 +0000 (+0000) Subject: * config/c4x/c4x.md (addqi3): Emit addqi3_noclobber pattern X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3432c51375a116169b0cd8e697bfbfd302e838e5;p=platform%2Fupstream%2Flinaro-gcc.git * config/c4x/c4x.md (addqi3): Emit addqi3_noclobber pattern during reload. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23872 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 37b6f60..803fb78 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 26 14:12:05 1998 Michael Hayes + + * config/c4x/c4x.md (addqi3): Emit addqi3_noclobber pattern + during reload. + Wed Nov 25 22:05:28 1998 J"orn Rennecke * config/sh/lib1funcs.asm (___udivsi3_i4): Don't switch to sz == 1 diff --git a/gcc/config/c4x/c4x.md b/gcc/config/c4x/c4x.md index 58033f0..117e157 100644 --- a/gcc/config/c4x/c4x.md +++ b/gcc/config/c4x/c4x.md @@ -1507,13 +1507,21 @@ ; ; ADDI ; +; This is used by reload when it calls gen_add2_insn for address arithmetic +; so we must emit the pattern that doesn't clobber CC. +; (define_expand "addqi3" [(parallel [(set (match_operand:QI 0 "reg_operand" "") (plus:QI (match_operand:QI 1 "src_operand" "") (match_operand:QI 2 "src_operand" ""))) (clobber (reg:CC_NOOV 21))])] "" - "legitimize_operands (PLUS, operands, QImode);") + "legitimize_operands (PLUS, operands, QImode); + if (reload_in_progress) + { + emit_insn (gen_addqi3_noclobber (operands[0], operands[1], operands[2])); + DONE; + }") (define_insn "*addqi3_clobber" [(set (match_operand:QI 0 "reg_operand" "=d,?d,d,c,?c,c")