public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110541] Invalid VEC_PERM_EXPR mask element size Date: Wed, 05 Jul 2023 06:55:54 +0000 [thread overview] Message-ID: <bug-110541-4-5Yb41QtwOQ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-110541-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110541 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed| |2023-07-05 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- The restriction as documented in tree.def applies to non-constant MASKs only, the case for constant MASKs was relaxed. Like /* Vector permutation expression. A = VEC_PERM_EXPR<v0, v1, mask> means N = length(mask) foreach i in N: M = mask[i] % (length(v0) + length(v1)) A[i] = M < length(v0) ? v0[M] : v1[M - length(v0)] V0 and V1 are vectors of the same type. When MASK is not constant: MASK is an integer-typed vector. The number of MASK elements must be the same with the number of elements in V0 and V1. The size of the inner type of the MASK and of the V0 and V1 must be the same. When MASK is constant: MASK is an integer-typed vector. MASK elements outside of [0, length(V0) + length(V1) - 1] invoke undefined behavior (the modulo operation above doesn't apply). */ DEFTREECODE (VEC_PERM_EXPR, "vec_perm_expr", tcc_expression, 3) I will submit this change.
next prev parent reply other threads:[~2023-07-05 6:55 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-07-04 11:33 [Bug tree-optimization/110541] New: " kristerw at gcc dot gnu.org 2023-07-05 6:55 ` rguenth at gcc dot gnu.org [this message] 2023-07-05 7:47 ` [Bug tree-optimization/110541] " cvs-commit at gcc dot gnu.org 2023-07-05 8:11 ` rguenth 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-110541-4-5Yb41QtwOQ@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).