public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/104662] arm: ice in simd_valid_immediate
Date: Wed, 04 May 2022 08:19:50 +0000	[thread overview]
Message-ID: <bug-104662-4-UbJKve5sn8@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104662-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104662

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Christophe Lyon <clyon@gcc.gnu.org>:

https://gcc.gnu.org/g:e2285af309000b74da0f7dc756a0b55e5f0b1b56

commit r13-102-ge2285af309000b74da0f7dc756a0b55e5f0b1b56
Author: Christophe Lyon <christophe.lyon@arm.com>
Date:   Tue Apr 19 17:34:04 2022 +0200

    arm: Restrict support of vectors of boolean immediates (PR target/104662)

    This simple patch avoids the ICE described in the PR:
    internal compiler error: in simd_valid_immediate, at
config/arm/arm.cc:12866

    with an early exit from simd_valid_immediate if we are trying to
    handle a vector of booleans and MVE is not enabled.

    We still get an ICE when compiling the existing
    gcc.dg/rtl/arm/mve-vxbi.c without -march=armv8.1-m.main+mve:

    error: unrecognizable insn:
    (insn 7 5 8 2 (set (reg:V4BI 114)
            (const_vector:V4BI [
                    (const_int 1 [0x1])
                    (const_int 0 [0]) repeated x2
                    (const_int 1 [0x1])
                ])) -1
         (nil))
    during RTL pass: ira

    but there's little we can do since the testcase explicitly creates
    vectors of booleans which do need MVE.

    That is the reason why I do not add a testcase.

    2022-04-19  Christophe Lyon  <christophe.lyon@arm.com>

            PR target/104662
            * config/arm/arm.cc (simd_valid_immediate): Exit when input is a
            vector of booleans and MVE is not enabled.

  parent reply	other threads:[~2022-05-04  8:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 13:38 [Bug target/104662] New: " dcb314 at hotmail dot com
2022-02-24 14:34 ` [Bug target/104662] " clyon at gcc dot gnu.org
2022-02-24 14:38 ` jakub at gcc dot gnu.org
2022-04-25  9:24 ` clyon at gcc dot gnu.org
2022-05-04  8:19 ` cvs-commit at gcc dot gnu.org [this message]
2022-05-04  8:23 ` clyon 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-104662-4-UbJKve5sn8@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: link
Be 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).