From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22625 invoked by alias); 28 Jul 2003 16:27:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22618 invoked by uid 48); 28 Jul 2003 16:27:04 -0000 Date: Mon, 28 Jul 2003 16:27:00 -0000 Message-ID: <20030728162704.22617.qmail@sources.redhat.com> From: "pinskia at physics dot uc dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030613031030.11181.dmixm@marine.febras.ru> References: <20030613031030.11181.dmixm@marine.febras.ru> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/11181] [3.3 only][avr-gcc] Optimization of "uchar/xor/and/single_bit" produced wrong code. X-Bugzilla-Reason: CC X-SW-Source: 2003-07/txt/msg03232.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11181 pinskia at physics dot uc dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[avr-gcc] Optimization of |[3.3 only][avr-gcc] |"uchar/xor/and/single_bit" |Optimization of |produced wrong code. |"uchar/xor/and/single_bit" | |produced wrong code. ------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-28 16:27 ------- It works on the mainline, I looked at the RTL at the last stage and it had: (jump_insn 19 18 24 (set (pc) (if_then_else (eq (zero_extract:HI (reg:QI 25 r25 [42]) (const_int 1 [0x1]) (const_int 0 [0x0])) (const_int 0 [0x0])) (label_ref 9) (pc))) 97 {*sbrx_branch} (insn_list 13 (nil)) (expr_list:REG_DEAD (reg:QI 25 r25 [42]) (expr_list:REG_BR_PROB (const_int 8900 [0x22c4]) (nil)))) So it worked. I will test the patch to find out if it fixes the problem on 3.3.1.