From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A716D3858D28; Mon, 28 Aug 2023 11:49:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A716D3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693223348; bh=+1jpIWvfEF3hyIbFUjmeFgz90LZLaEFEKZiwipBnKD8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=nmY9xVrk5J0kWCjep4eAp5zhHVgw5RrtkCtRAHIQ3xcaCWbZv1ndwmwSgguRoSjsx XmS3V4+vvBKLxRZVSubCmenIIAK56SPn1FNXkI7VD7mTXD6/bWICktVBz4meIWVQ5m 3CxxNO1N3BHJAOB+SEtkhHxrG5jlYjiuu+ysTyrU= From: "gnu_bugzilla_gcc at catelyn dot tech" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111166] gcc unnecessarily creates vector operations for packing 32 bit integers into struct (x86_64) Date: Mon, 28 Aug 2023 11:49:07 +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: 13.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: gnu_bugzilla_gcc at catelyn dot tech X-Bugzilla-Status: NEW 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: attachments.created 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=3D111166 --- Comment #2 from gnu_bugzilla_gcc at catelyn dot tech --- Created attachment 55807 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55807&action=3Dedit preprocessed file containing the benchmark code I used I compiled this code (although using includes for clock, CLOCKS_PER_SEC, time_t, printf, and ) to an object and linked it with the bug-triggering file (compiled with -Os, -O2 and -O3 to test all those optio= ns), to measure the speed of the generated implementations of the bug-triggering file=