This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Re: Buggy peephole prevents bootstrap (i386)
- To: Zack Weinberg <zackw at Stanford dot EDU>
- Subject: [PATCH] Re: Buggy peephole prevents bootstrap (i386)
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Sat, 14 Oct 2000 15:55:21 +1100 (EST)
- cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, Jan Hubicka <jh at suse dot cz>, Mike Coleman <mcoleman2 at kc dot rr dot com>, "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
This did the trick. Jan may know how to go about modifying a later
branch or set<cc> instead of just disabling the optimization, but it seems
like too much work to me.
bootstrapped on i686-linux
gcc/ChangeLog
* config/i386/i386.md (cmp to add peep2): Enable only for CCGCmode.
Alan Modra
--
Linuxcare. Support for the Revolution.
--- gcc/config/i386/i386.md~ Fri Oct 13 16:37:19 2000
+++ gcc/config/i386/i386.md Sat Oct 14 14:10:24 2000
@@ -11447,7 +11447,7 @@
[(set (reg 17)
(compare (match_operand:SI 0 "register_operand" "")
(const_int 128)))]
- "ix86_match_ccmode (insn, CCmode)
+ "ix86_match_ccmode (insn, CCGCmode)
&& find_regno_note (insn, REG_DEAD, true_regnum (operands[0]))"
[(parallel [(set (reg:CC 17)
(compare:CC (neg:SI (const_int -128))
@@ -11459,7 +11459,7 @@
[(set (reg 17)
(compare (match_operand:HI 0 "register_operand" "")
(const_int 128)))]
- "ix86_match_ccmode (insn, CCmode)
+ "ix86_match_ccmode (insn, CCGCmode)
&& find_regno_note (insn, REG_DEAD, true_regnum (operands[0]))"
[(parallel [(set (reg:CC 17)
(compare:CC (neg:HI (const_int -128))