From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 625E03858D35; Sat, 6 Jan 2024 23:24:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 625E03858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704583450; bh=6wqTZqHtD51uHmIEvAeGzzBX672pH2YtpwLx79fin0Q=; h=From:To:Subject:Date:From; b=WPHcNdnn24RxJ64R6HbeWxrnqmylzb9KLYPkRDfKleIrP83wCfYb2kfsyTkypvNSD zV+aYlKhxK6hscqnP8GixvHhhaPIzcoGrSgSEjojQTK2m5HQdHPh47Lp5UG5WpNQXq XONfnIlwshPuGEj2pIgs67fjLp1XKCPHlQS2AvQU= From: "mednafen at sent dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113255] New: wrong code with -O2 -mtune=k8 Date: Sat, 06 Jan 2024 23:24:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mednafen at sent dot com 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget attachments.created Message-ID: 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=3D113255 Bug ID: 113255 Summary: wrong code with -O2 -mtune=3Dk8 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mednafen at sent dot com Target Milestone: --- Target: x86_64-pc-linux-gnu Created attachment 57000 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57000&action=3Dedit test case Linux x86_64 $ /usr/local/gcc-13.2.0/bin/gcc -Wall -O2 -o sprite sprite.c && ./sprite 1 $ /usr/local/gcc-13.2.0/bin/gcc -Wall -O2 -mtune=3Dk8 -o sprite sprite.c && ./sprite 0 Aborted The problem appears to have started around version 10.2.0.=