public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114566] New: Misaligned vmovaps when compiling libvorbis for znver4
@ 2024-04-02 18:19 yshuiv7 at gmail dot com
  2024-04-02 18:28 ` [Bug target/114566] " pinskia at gcc dot gnu.org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: yshuiv7 at gmail dot com @ 2024-04-02 18:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114566

            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: 
       cmake -B build -DCMAKE_C_FLAGS="-march=znver4 -mtune=znver4"
-DCMAKE_CXX_FLAGS="-march=znver4 -mtune=znver4" -DCMAKE_BUILD_TYPE=Release .
3. Run tests: 
       make -C build test

Stack trace:
#0  0x0000000000410d2e in setup_tone_curves
(curveatt_dB=curveatt_dB@entry=0x4e1834, binHz=binHz@entry=86.1328125,
    n=n@entry=256, center_boost=-1.00000203, center_decay_rate=<optimized out>)
at /tmp/vorbis/lib/psy.c:129
#1  0x0000000000413b24 in _vp_psy_init (p=0x4fe8c0, vi=<optimized out>,
gi=gi@entry=0x4e0be0, n=256,
    rate=<optimized out>) at /tmp/vorbis/lib/psy.c:326
#2  0x000000000040a7b5 in _vds_shared_init (v=v@entry=0x7fffffffb370,
vi=vi@entry=0x7fffffffb330, encp=encp@entry=1)
    at /tmp/vorbis/lib/block.c:225
#3  0x000000000040a93f in vorbis_analysis_init (v=v@entry=0x7fffffffb370,
vi=vi@entry=0x7fffffffb330)
    at /tmp/vorbis/lib/block.c:298
#4  0x0000000000404ad2 in write_vorbis_data_or_die (
    filename=filename@entry=0x7fffffffb700 "vorbis_1ch_q-0.5_44100.ogg",
srate=srate@entry=44100,
    q=q@entry=-0.0500000007, data=data@entry=0x4dc080 <data_out>,
count=count@entry=2048, ch=ch@entry=1)
    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
=> 0x0000000000410d2e <+1918>:  vmovaps %ymm17,-0x20(%rdx)

$rdx is 0x7fffffff3a10

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2024-04-23  6:45 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 18:19 [Bug c/114566] New: Misaligned vmovaps when compiling libvorbis for znver4 yshuiv7 at gmail dot com
2024-04-02 18:28 ` [Bug target/114566] " pinskia at gcc dot gnu.org
2024-04-02 19:33 ` yshuiv7 at gmail dot com
2024-04-02 20:15 ` yshuiv7 at gmail dot com
2024-04-02 20:22 ` yshuiv7 at gmail dot com
2024-04-02 20:28 ` yshuiv7 at gmail dot com
2024-04-02 20:37 ` pinskia at gcc dot gnu.org
2024-04-02 20:40 ` yshuiv7 at gmail dot com
2024-04-02 20:44 ` [Bug target/114566] Misaligned vmovaps when compiling with stack-protector-strong " pinskia at gcc dot gnu.org
2024-04-04 15:22 ` jakub at gcc dot gnu.org
2024-04-04 15:23 ` [Bug target/114566] [11/12/13 Regression] " jakub at gcc dot gnu.org
2024-04-04 15:40 ` jakub at gcc dot gnu.org
2024-04-04 15:46 ` jakub at gcc dot gnu.org
2024-04-04 16:33 ` jakub at gcc dot gnu.org
2024-04-04 16:57 ` jakub at gcc dot gnu.org
2024-04-04 17:08 ` [Bug target/114566] [11/12/13/14 " jakub at gcc dot gnu.org
2024-04-04 17:14 ` pinskia at gcc dot gnu.org
2024-04-05 10:30 ` [Bug tree-optimization/114566] " jakub at gcc dot gnu.org
2024-04-05 12:56 ` cvs-commit at gcc dot gnu.org
2024-04-05 12:57 ` [Bug tree-optimization/114566] [11/12/13 " jakub at gcc dot gnu.org
2024-04-21  4:08 ` cvs-commit at gcc dot gnu.org
2024-04-23  6:45 ` [Bug tree-optimization/114566] [11/12 " jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).