[Bug target/106933] [13 Regression] ICE in extract_insn, at recog.cc:2791 (error: unrecognizable insn) since r13-2049-g6f94923dea21bd92

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 6 17:18:55 GMT 2022


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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
This fixes ICE:

diff --git a/gcc/config/i386/i386-features.cc
b/gcc/config/i386/i386-features.cc
index fd212262f50..cc690a6064c 100644
--- a/gcc/config/i386/i386-features.cc
+++ b/gcc/config/i386/i386-features.cc
@@ -1975,6 +1975,9 @@ timode_scalar_to_vector_candidate_p (rtx_insn *insn)
   switch (GET_CODE (src))
     {
     case REG:
+      /* Return false if the source is uninitialized.  */
+      return DF_REG_DEF_CHAIN (REGNO (src)) != nullptr;
+
     case CONST_WIDE_INT:
       return true;


More information about the Gcc-bugs mailing list