public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gilles.gouaillardet at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102252] New: svbool_t with SVE can generate invalid assembly Date: Thu, 09 Sep 2021 09:41:29 +0000 [thread overview] Message-ID: <bug-102252-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102252 Bug ID: 102252 Summary: svbool_t with SVE can generate invalid assembly Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gilles.gouaillardet at gmail dot com Target Milestone: --- Created attachment 51429 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51429&action=edit a simple reproducer Let's consider the attached test_svbool.cpp and compile it with SVE fixed 512 bits: $ g++ -march=armv8.2-a+sve -msve-vector-bits=512 -c test_svbool.cpp /tmp/cc38qRcE.s: Assembler messages: /tmp/cc38qRcE.s:44: Error: invalid addressing mode at operand 2 -- `ldr p0,[x0,x1,lsl 3]' The generated assembly is invalid and cannot be assembled. All branches that support SVE (10, 11 and 12) are affected. FWIW, the code compiles just fine with LLVM 12, 13 and main branches. This code is a trimmed version of an improvement for GROMACS.
next reply other threads:[~2021-09-09 9:41 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-09 9:41 gilles.gouaillardet at gmail dot com [this message] 2021-09-09 9:43 ` [Bug target/102252] " gilles.gouaillardet at gmail dot com 2021-09-09 10:39 ` ktkachov at gcc dot gnu.org 2021-09-09 10:56 ` ktkachov at gcc dot gnu.org 2021-09-09 11:01 ` ktkachov at gcc dot gnu.org 2021-09-13 14:42 ` cvs-commit at gcc dot gnu.org 2021-09-21 2:06 ` gilles.gouaillardet at gmail dot com 2024-01-26 6:55 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-102252-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).