Re: [PATCH v3] x86: Properly find the maximum stack slot alignment

2025-02-19 Thread Uros Bizjak
On Sat, Feb 15, 2025 at 1:27 AM H.J. Lu wrote: > > On Fri, Feb 14, 2025 at 10:08 PM Richard Biener wrote: > > > > On Fri, 14 Feb 2025, Uros Bizjak wrote: > > > > > On Fri, Feb 14, 2025 at 4:56 AM H.J. Lu wrote: > > > > > > > > On Thu, Feb 13, 2025 at 5:17 PM Uros Bizjak wrote: > > > > > > > > >

Re: [PATCH v3] x86: Properly find the maximum stack slot alignment

2025-02-17 Thread Uros Bizjak
On Fri, Feb 14, 2025 at 2:11 PM Uros Bizjak wrote: > > On Fri, Feb 14, 2025 at 4:56 AM H.J. Lu wrote: > > > > On Thu, Feb 13, 2025 at 5:17 PM Uros Bizjak wrote: > > > > > > On Thu, Feb 13, 2025 at 9:31 AM H.J. Lu wrote: > > > > > > > > Don't assume that stack slots can only be accessed by stack

Re: [PATCH v3] x86: Properly find the maximum stack slot alignment

2025-02-14 Thread H.J. Lu
On Fri, Feb 14, 2025 at 10:08 PM Richard Biener wrote: > > On Fri, 14 Feb 2025, Uros Bizjak wrote: > > > On Fri, Feb 14, 2025 at 4:56 AM H.J. Lu wrote: > > > > > > On Thu, Feb 13, 2025 at 5:17 PM Uros Bizjak wrote: > > > > > > > > On Thu, Feb 13, 2025 at 9:31 AM H.J. Lu wrote: > > > > > > > > >

Re: [PATCH v3] x86: Properly find the maximum stack slot alignment

2025-02-14 Thread Richard Biener
On Fri, 14 Feb 2025, Uros Bizjak wrote: > On Fri, Feb 14, 2025 at 4:56 AM H.J. Lu wrote: > > > > On Thu, Feb 13, 2025 at 5:17 PM Uros Bizjak wrote: > > > > > > On Thu, Feb 13, 2025 at 9:31 AM H.J. Lu wrote: > > > > > > > > Don't assume that stack slots can only be accessed by stack or frame > >

Re: [PATCH v3] x86: Properly find the maximum stack slot alignment

2025-02-14 Thread Uros Bizjak
On Fri, Feb 14, 2025 at 4:56 AM H.J. Lu wrote: > > On Thu, Feb 13, 2025 at 5:17 PM Uros Bizjak wrote: > > > > On Thu, Feb 13, 2025 at 9:31 AM H.J. Lu wrote: > > > > > > Don't assume that stack slots can only be accessed by stack or frame > > > registers. We first find all registers defined by s

[PATCH v3] x86: Properly find the maximum stack slot alignment

2025-02-13 Thread H.J. Lu
n } */ > +/* { dg-options "-O2 -mavx2 -mtune=znver1 > -ftrivial-auto-var-init=zero -fno-stack-protector" } */ > + > > Please use > > /* { dg-do run { target avx2_runtime } } */ > Done. > +{ > + __builtin_cpu_init (); > + > + if (__builtin_cpu_support

Re: [PATCH v3] x86: Properly find the maximum stack slot alignment

2023-07-25 Thread Richard Biener via Gcc-patches
On Mon, Jul 24, 2023 at 10:36 PM H.J. Lu via Gcc-patches wrote: > > Don't assume that stack slots can only be accessed by stack or frame > registers. We first find all registers defined by stack or frame > registers. Then check memory accesses by such registers, including > stack and frame regis

[PATCH v3] x86: Properly find the maximum stack slot alignment

2023-07-24 Thread H.J. Lu via Gcc-patches
Don't assume that stack slots can only be accessed by stack or frame registers. We first find all registers defined by stack or frame registers. Then check memory accesses by such registers, including stack and frame registers. gcc/ PR target/109780 * config/i386/i386.cc (ix86_u