Re: GCC 12 miscompilation of volatile asm (was: Re: [PATCH] arm64/io: Remind compiler that there is a memory side effect)

2022-04-11 Thread Mark Rutland via Gcc
On Tue, Apr 05, 2022 at 04:05:22PM +0200, Peter Zijlstra wrote: > On Tue, Apr 05, 2022 at 01:51:30PM +0100, Mark Rutland wrote: > > Hi all, > > > > [adding kernel folk who work on asm stuff] > > > > As a heads-up, GCC 12 (not yet released) appears to erroneously optimize > > away > > calls to fu

Re: GCC 12 miscompilation of volatile asm (was: Re: [PATCH] arm64/io: Remind compiler that there is a memory side effect)

2022-04-11 Thread Mark Rutland via Gcc
On Tue, Apr 05, 2022 at 01:51:30PM +0100, Mark Rutland wrote: > Hi all, > > [adding kernel folk who work on asm stuff] > > As a heads-up, GCC 12 (not yet released) appears to erroneously optimize away > calls to functions with volatile asm. Szabolcs has raised an issue on the GCC > bugzilla: >

Complex multiply optimization working?

2022-04-11 Thread Andrew Stubbs
Hi all, I've been looking at implementing the complex multiply patterns for the amdgcn port, but I'm not getting the code I was hoping for. When I try to use the patterns on x86_64 or AArch64 they don't seem to work there either, so is there something wrong with the middle-end? I've tried both

Re: Complex multiply optimization working?

2022-04-11 Thread Richard Biener via Gcc
On Mon, Apr 11, 2022 at 1:26 PM Andrew Stubbs wrote: > > Hi all, > > I've been looking at implementing the complex multiply patterns for the > amdgcn port, but I'm not getting the code I was hoping for. When I try > to use the patterns on x86_64 or AArch64 they don't seem to work there > either, s

RE: Complex multiply optimization working?

2022-04-11 Thread Tamar Christina via Gcc
HI, > -Original Message- > From: Andrew Stubbs > Sent: Monday, April 11, 2022 12:19 PM > To: GCC Development > Cc: Tamar Christina > Subject: Complex multiply optimization working? > > Hi all, > > I've been looking at implementing the complex multiply patterns for the > amdgcn port, b

Re: Complex multiply optimization working?

2022-04-11 Thread Andrew Stubbs
On 11/04/2022 13:02, Richard Biener wrote: You need to check the vectorizer dump whether a complex pattern was recognized or not. Did you properly use -ffast-math? Aha! I needed to enable -ffast-math. I missed that this is unsafe, and there's a fall-back to _muldc3 on NaN. OK, presumably I n

Re: Complex multiply optimization working?

2022-04-11 Thread Andrew Stubbs
On 11/04/2022 13:03, Tamar Christina wrote: They work fine in both GCC 11 and HEAD https://godbolt.org/z/Mxxz6qWbP Did you actually enable the instructions? Yes, as I said it uses the instructions, just not fully vectorized. Anyway, the problem was I needed -ffast-math to skip the NaN checks.

GSoC 2022

2022-04-11 Thread Juan Scerri
Hi, I will not be able to participate in GSoC this year. However, I will continue working on the demangler on any occasion that I will have. I will continue updating the mailing list about my progress. Regards, Juan

Re: GCC 12 miscompilation of volatile asm (was: Re: [PATCH] arm64/io: Remind compiler that there is a memory side effect)

2022-04-11 Thread Jeremy Linton via Gcc
Hi, On 4/11/22 05:31, Mark Rutland wrote: On Tue, Apr 05, 2022 at 01:51:30PM +0100, Mark Rutland wrote: Hi all, [adding kernel folk who work on asm stuff] As a heads-up, GCC 12 (not yet released) appears to erroneously optimize away calls to functions with volatile asm. Szabolcs has raised a

Ferching Rtl instruction corressponding to Gimple Call instruction

2022-04-11 Thread Shubham Narlawar via Gcc
Hello, I want to collect complete rtl instruction corresponding to below gimple call - "__builtin_temp" I have gimple instructions of form - slli_31 = _2 << 8; srli_32 = slli_31 >> 8; add_33 = srli_32 + 15; _20 = __builtin_temp (instrn_buffer.36_1, 1, add_33); For that, I put breakpoint in expa

testsuite requires LTO?

2022-04-11 Thread Steve Kargl via Gcc
If I configure gcc with the following ../gccx/configure --prefix=$HOME/work/x --enable-languages=c,c++,fortran \ --enable-bootstrap --disable-nls --enable-checking --disable-multilib \ --disable-libsanitizer --disable-lto. then bootstrap gcc, why do I see 1000s of failures with % cd gcc % gm

Re: [GSoC]Bypass assembler when generating LTO object files

2022-04-11 Thread Ankur Saini via Gcc
> On 08-Apr-2022, at 6:32 PM, Jan Hubicka wrote: > > Ankur, >> I was browsing the list of submitted GSoC projects this year and the >> project regarding bypassing assembler when generating LTO object files >> caught my eye. > I apologize for late reply. I would be very happy to mentor this >