public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/102252] New: svbool_t with SVE can generate invalid assembly
@ 2021-09-09  9:41 gilles.gouaillardet at gmail dot com
  2021-09-09  9:43 ` [Bug target/102252] " gilles.gouaillardet at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gilles.gouaillardet at gmail dot com @ 2021-09-09  9:41 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2024-01-26  6:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-09  9:41 [Bug target/102252] New: svbool_t with SVE can generate invalid assembly gilles.gouaillardet at gmail dot com
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

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).