From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DA8673858D28; Tue, 2 Apr 2024 18:19:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA8673858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712081948; bh=DVyV1xNtFOPLuBcYS2K4OgFpDp00LXRAwfQY8rBGxzg=; h=From:To:Subject:Date:From; b=Rd9lkFahGrdoCMxySScQRTflwTrA8Tzk3FumfW1F1svVnNhFGgDaUYVfxMoKpI68C XTwv40g+UekKk4nymUDbumU5lq4mjVGVESPRhIEGlHHppDM9wmkByxq7TsKQR81sTA LZhxH/W+alTwTiujBCB/d2ukshF6+1rAITffIgYk= From: "yshuiv7 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114566] New: Misaligned vmovaps when compiling libvorbis for znver4 Date: Tue, 02 Apr 2024 18:19:07 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: yshuiv7 at gmail 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 bug_severity priority component assigned_to reporter target_milestone 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=3D114566 Bug ID: 114566 Summary: Misaligned vmovaps when compiling libvorbis for znver4 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yshuiv7 at gmail dot com Target Milestone: --- Haven't tried to minimize it yet, but here is how to reproduce it: 1. Download libvorbis 1.3.7 source: https://github.com/xiph/vorbis/tree/v1.= 3.7 2. Configure it:=20 cmake -B build -DCMAKE_C_FLAGS=3D"-march=3Dznver4 -mtune=3Dznver4" -DCMAKE_CXX_FLAGS=3D"-march=3Dznver4 -mtune=3Dznver4" -DCMAKE_BUILD_TYPE=3D= Release . 3. Run tests:=20 make -C build test Stack trace: #0 0x0000000000410d2e in setup_tone_curves (curveatt_dB=3Dcurveatt_dB@entry=3D0x4e1834, binHz=3DbinHz@entry=3D86.13281= 25, n=3Dn@entry=3D256, center_boost=3D-1.00000203, center_decay_rate=3D) at /tmp/vorbis/lib/psy.c:129 #1 0x0000000000413b24 in _vp_psy_init (p=3D0x4fe8c0, vi=3D, gi=3Dgi@entry=3D0x4e0be0, n=3D256, rate=3D) at /tmp/vorbis/lib/psy.c:326 #2 0x000000000040a7b5 in _vds_shared_init (v=3Dv@entry=3D0x7fffffffb370, vi=3Dvi@entry=3D0x7fffffffb330, encp=3Dencp@entry=3D1) at /tmp/vorbis/lib/block.c:225 #3 0x000000000040a93f in vorbis_analysis_init (v=3Dv@entry=3D0x7fffffffb37= 0, vi=3Dvi@entry=3D0x7fffffffb330) at /tmp/vorbis/lib/block.c:298 #4 0x0000000000404ad2 in write_vorbis_data_or_die ( filename=3Dfilename@entry=3D0x7fffffffb700 "vorbis_1ch_q-0.5_44100.ogg", srate=3Dsrate@entry=3D44100, q=3Dq@entry=3D-0.0500000007, data=3Ddata@entry=3D0x4dc080 , count=3Dcount@entry=3D2048, ch=3Dch@entry=3D1) at /tmp/vorbis/test/write_read.c:61 #5 0x000000000040456d in main () at /tmp/vorbis/test/test.c:58 Relevant part of the code: 0x0000000000410cee <+1854>: add $0xe0,%rdx 0x0000000000410cf5 <+1861>: vmovups %zmm17,-0xe0(%rdx) 0x0000000000410cff <+1871>: vaddps -0xa0(%rdx),%zmm7,%zmm17 0x0000000000410d09 <+1881>: vmovups %zmm17,-0xa0(%rdx) 0x0000000000410d13 <+1891>: vaddps -0x60(%rdx),%zmm6,%zmm17 0x0000000000410d1d <+1901>: vmovups %zmm17,-0x60(%rdx) 0x0000000000410d27 <+1911>: vaddps -0x20(%rdx),%ymm0,%ymm17 =3D> 0x0000000000410d2e <+1918>: vmovaps %ymm17,-0x20(%rdx) $rdx is 0x7fffffff3a10=