From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 487963858408; Wed, 5 Jul 2023 09:50:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 487963858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688550638; bh=amZx8lphBmX51eWfufflYiDUtGumn41zeHLNO5+KtPo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X2e+l6SNDn2U06YRvy6caPu9HUTLTVCIQwLEalXwMSi+iK7LqGdk9EZjUkqadmcSK /EheQl96uQoyrSAy8ZuT2SdVLkGGKDzgi8hWuGOvo/0Uuv6Mi5MsaZKqCp1iLHLHHD A/53oAVVIXiSVrRW0Z3nLyrwm6ir4kzX8MOxFAT4= From: "syq at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104914] [MIPS] wrong comparison with scrabbled int value Date: Wed, 05 Jul 2023 09:50:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: syq at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104914 --- Comment #6 from YunQiang Su --- In RTL (xx.c.256r.expand), there is=20 (insn 10 9 11 2 (set (zero_extract:DI (reg/v:DI 200 [ val ]) (const_int 8 [0x8]) (const_int 0 [0])) (subreg:DI (reg:QI 202) 0)) "xx.c":4:29 -1 (nil)) Maybe, it wrong as the mode cannot show the real length of val.=