From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E38063858CDA; Tue, 31 Jan 2023 08:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E38063858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675155055; bh=KkaDfx3X8i0laCfBvfSx7Hj76oZ+ijl6ZQ3Rs3U5HV4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kypNRzv87zS6rYDOqL5n8ibv0ZPjzTJNpaAhzf2f9jDTLt4rQDgSW5ctWT0nOoiSj 4JEg4w6o83GtnmFt76ZwvLC0DhfKEltBc4Kfm/eyAxohhRbfTHJMbKTEMTei1HgiPl fzBO7YtDLzmG/nXxh842T8KsKrAKJpt0ZJXAtE2Y= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/108604] New test case gcc.dg/torture/pr108574-3.c in r13-5492-g7ac3e69e311351 hangs Date: Tue, 31 Jan 2023 08:50:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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=3D108604 --- Comment #1 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:78d6489f736963a8a07c494294c72662c49e8e63 commit r13-5528-g78d6489f736963a8a07c494294c72662c49e8e63 Author: Xianmiao Qu Date: Tue Jan 31 09:49:06 2023 +0100 testsuite/108604 - gcc.dg/torture/pr108574-3.c hangs on unsigned char a= rchs In the architecture where sign defaults to unsigned, the 'f' will be ze= ro extended to int type in the expression 'd =3D ~(f & ~2880764155)', then= the 'd' will become -1 wich cause the case to fail. So it's ok for the architectures where sign defaults to signed like x86, but failed for the architectures where sign defaults to unsigned like a= rm and csky. Change char to signed char to avoid this problem. PR testsuite/108604 gcc/testsuite: * gcc.dg/torture/pr108574-3.c (b, f): Change type from char to signed char.=