public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug rtl-optimization/103632] New: wrong code at -O2 on aarch64-unknown-linux-gnu @ 2021-12-09 14:44 zsojka at seznam dot cz 2021-12-09 15:11 ` [Bug middle-end/103632] " pinskia at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: zsojka at seznam dot cz @ 2021-12-09 14:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103632 Bug ID: 103632 Summary: wrong code at -O2 on aarch64-unknown-linux-gnu Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: aarch64-unknown-linux-gnu Created attachment 51960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51960&action=edit reduced testcase Output: $ aarch64-unknown-linux-gnu-gcc -O2 testcase.c -static $ qemu-aarch64 -- ./a.out qemu: uncaught target signal 6 (Aborted) - core dumped Aborted $ aarch64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-aarch64/bin/aarch64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-5853-20211208233715-gaf93386ffc1-checking-yes-rtl-df-extra-aarch64/bin/../libexec/gcc/aarch64-unknown-linux-gnu/12.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-sysroot=/usr/aarch64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=aarch64-unknown-linux-gnu --with-ld=/usr/bin/aarch64-unknown-linux-gnu-ld --with-as=/usr/bin/aarch64-unknown-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-5853-20211208233715-gaf93386ffc1-checking-yes-rtl-df-extra-aarch64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211209 (experimental) (GCC) ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/103632] wrong code at -O2 on aarch64-unknown-linux-gnu 2021-12-09 14:44 [Bug rtl-optimization/103632] New: wrong code at -O2 on aarch64-unknown-linux-gnu zsojka at seznam dot cz @ 2021-12-09 15:11 ` pinskia at gcc dot gnu.org 2021-12-09 15:16 ` pinskia at gcc dot gnu.org 2021-12-13 8:36 ` tnfchris at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-09 15:11 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103632 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So if I add: asm("":"+w"(v128u32_2)); Right after the definition of v128u32_2, it works. If I place it after: /* 0 */ foo0_u16_0 ^= foo0_u64_0 % u128_0; It fails. The above uses a libcall to do the mod, so there could be some scheduling or something like that. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/103632] wrong code at -O2 on aarch64-unknown-linux-gnu 2021-12-09 14:44 [Bug rtl-optimization/103632] New: wrong code at -O2 on aarch64-unknown-linux-gnu zsojka at seznam dot cz 2021-12-09 15:11 ` [Bug middle-end/103632] " pinskia at gcc dot gnu.org @ 2021-12-09 15:16 ` pinskia at gcc dot gnu.org 2021-12-13 8:36 ` tnfchris at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-09 15:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103632 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2021-12-09 Status|UNCONFIRMED |NEW --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. I can only think this is some register allocation issue to some extend as the upper bits of the SIMD registers can be clobbered by the function call. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/103632] wrong code at -O2 on aarch64-unknown-linux-gnu 2021-12-09 14:44 [Bug rtl-optimization/103632] New: wrong code at -O2 on aarch64-unknown-linux-gnu zsojka at seznam dot cz 2021-12-09 15:11 ` [Bug middle-end/103632] " pinskia at gcc dot gnu.org 2021-12-09 15:16 ` pinskia at gcc dot gnu.org @ 2021-12-13 8:36 ` tnfchris at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: tnfchris at gcc dot gnu.org @ 2021-12-13 8:36 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103632 Tamar Christina <tnfchris at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> --- This is a dup of PR103350 *** This bug has been marked as a duplicate of bug 103350 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-13 8:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-12-09 14:44 [Bug rtl-optimization/103632] New: wrong code at -O2 on aarch64-unknown-linux-gnu zsojka at seznam dot cz 2021-12-09 15:11 ` [Bug middle-end/103632] " pinskia at gcc dot gnu.org 2021-12-09 15:16 ` pinskia at gcc dot gnu.org 2021-12-13 8:36 ` tnfchris 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).