From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EB4823858D20; Wed, 1 Nov 2023 09:16:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB4823858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698830186; bh=rpc5cG2fxfGUpjdYBPLgJisTPjech0jmPYx7oDNtEHo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gIKnCTX8HdFZOOuB3hacjdB5lGQXnm0zdP5CncRCB2u6y+MqZmgfjvhVD4i7Dxwub yd15Zen8kbAhx8YSybM7yRanlOMXLPsMMcUyuXERJ924+mOZ3OuPBwSfNoBlWykaYU xTgKpsQ2PBdjTeGjiC4kYzwvO542IKemQKdhl6Uw= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112112] Improper Arithmetic Type Conversion in s390x-linux-gnu-gcc Date: Wed, 01 Nov 2023 09:16:26 +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: 11.4.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: cf_reconfirmed_on everconfirmed bug_status 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=3D112112 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-11-01 Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING --- Comment #7 from Thomas Koenig --- (In reply to =EA=B9=80=EB=8C=80=EC=98=81 from comment #6) > ``` > z3rodae0@z3rodae0:~$ ./sh.sh > result for -O0 "signed" =3D 1 > result for -O1 "signed" =3D 1 > result for -O2 "signed" =3D 1 > result for -O3 "signed" =3D 1 > result for -O0 "unsigned" =3D 0 > result for -O1 "unsigned" =3D 0 > result for -O2 "unsigned" =3D 0 > result for -O3 "unsigned" =3D 0 > result for -O0 "" =3D 1 > result for -O1 "" =3D 1 > result for -O2 "" =3D 1 > result for -O3 "" =3D 1 > ``` >=20 > That's correct. I ran your code and script in my environment, and it > produced the same results That is weird. I don't see a meaningful difference between the version without signed or unsigned and your program, and you get inconsistent results with your original program and consistent results with the other one. Or am I missing something?=