public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "acoplan at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99813] New: SVE: Invalid assembly at -O3 (multiplier out of range in incb instruction) Date: Mon, 29 Mar 2021 09:16:28 +0000 [thread overview] Message-ID: <bug-99813-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99813 Bug ID: 99813 Summary: SVE: Invalid assembly at -O3 (multiplier out of range in incb instruction) Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails: $ cat test.cc long a, b; bool c[2][14][2][16], f[2][14][2][16]; bool d; char e[2][4][2][6]; void g() { a = 0; for (int h = 0; h < 2; ++h) for (int i = 0; i < 14; ++i) for (int j = 0; j < 2; ++j) for (int k = 0; k < 16; ++k) c[h][i][j][k] = 0; d = 0; for (int h; h < 2; ++h) for (int i = 0; i < 4; ++i) for (int j = 0; j < 2; ++j) for (int k = 0; k < 6; ++k) e[h][i][j][k] = 6; for (int h = 0; h < 2; ++h) for (int i = 0; i < 14; ++i) for (int j = 0; j < 2; ++j) for (int k = 0; k < 16; ++k) f[h][i][j][k] = b = 9; } $ aarch64-linux-gnu-gcc -c test.cc -O3 -march=armv8.2-a+sve -fvect-cost-model=unlimited -fno-tree-dominator-opts -mtune=cortex-a72 /tmp/ccXhdoed.s: Assembler messages: /tmp/ccXhdoed.s:647: Error: multiplier out of range 1 to 16 at operand 2 -- `incb x15,all,mul#28' The choice of -mtune is questionable given that we've asked for SVE, but we shouldn't generate invalid assembly in any case.
next reply other threads:[~2021-03-29 9:16 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-29 9:16 acoplan at gcc dot gnu.org [this message] 2021-03-29 9:22 ` [Bug target/99813] [11 Regression] " ktkachov at gcc dot gnu.org 2021-03-30 9:18 ` jakub at gcc dot gnu.org 2021-03-30 9:46 ` jakub at gcc dot gnu.org 2021-03-30 15:20 ` rsandifo at gcc dot gnu.org 2021-03-30 15:58 ` jakub at gcc dot gnu.org 2021-03-30 16:10 ` jakub at gcc dot gnu.org 2021-03-31 8:48 ` cvs-commit at gcc dot gnu.org 2021-03-31 8:49 ` jakub at gcc dot gnu.org 2021-03-31 13:29 ` cvs-commit 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-99813-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).