From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C88D63858C50; Thu, 4 Jan 2024 17:09:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C88D63858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704388162; bh=abWOX8Y0FKfRQ1ue2MOuquTErpzS7tSCb+WCFB9F/fs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MMYRrb49A/WhwmWxVbLObtqWpe1H/w3gsl/Prjs//6LG4G1Yt+y7ggFDYaNUiiPBv Wv5XICf1vIK+Dd2MCG7mGex7rZMIwW/5XZ0GfjNyG8IO/DH+YaXi1y+DsEvOeysKmi VH/YL4u2O25cOzBHyMk9K+2YKJ3wc0yGZKAkuFtM= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113235] SMHasher SHA3-256 benchmark is almost 40% slower vs. Clang on AMD Zen 4 Date: Thu, 04 Jan 2024 17:09:19 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 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=3D113235 --- Comment #2 from Xi Ruoyao --- The test file can be downloaded from http://phoronix-test-suite.com/benchmark-files/smhasher-20220822.tar.xz. J= ust build it with cmake and run "./SMHasher --test=3DSpeed sha3-256". The buil= ding system enables -O3 and LTO by default. With GCC 13 I get about 180 MiB/s, but Clang 17 produces 250 MiB/s. Part of the difference is caused by the different -fsemantic-interposition default, if I pass -fno-semantic-interposition GCC 13 produces about 200 Mi= B/s.=