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

            Bug ID: 112540
           Summary: in extract_insn, at recog.cc:2804
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C code:

__imlib_BlendShapedSpanToRGB(int *dst) {
  int tmp;
  ((unsigned char *)dst)[2] = tmp = dst;
  ((unsigned char *)dst)[1] = dst[1] + (tmp >> 8);
}

compiled as follows:

cvise $ ~/gcc/results/bin/gcc -w -O1 -march=znver1 -c bug980.c
cvise $ ~/gcc/results/bin/gcc -w -O2 -march=znver1 -c bug980.c
bug980.c: In function ‘__imlib_BlendShapedSpanToRGB’:
bug980.c:5:1: error: unrecognizable insn:
    5 | }
      | ^
(insn 26 25 12 2 (parallel [
            (set (strict_low_part (reg:QI 1 dx [orig:109 dst.0_1 ] [109]))
                (plus:QI (subreg:QI (zero_extract:DI (reg:QI 1 dx [orig:109
dst.0_1 ] [109])
                            (const_int 8 [0x8])
                            (const_int 8 [0x8])) 0)
                    (reg:QI 2 cx [115])))
            (clobber (reg:CC 17 flags))
        ]) "bug980.c":4:29 -1
     (nil))
during RTL pass: split2
bug980.c:5:1: internal compiler error: in extract_insn, at recog.cc:2804
0xe46c04 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/dcb38/gcc/working/gcc/../../trunk.year/gcc/rtl-error.cc:108
0xe46c2b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /home/dcb38/gcc/working/gcc/../../trunk.year/gcc/rtl-error.cc:116
0xe00198 extract_insn(rtx_insn*)
        /home/dcb38/gcc/working/gcc/../../trunk.year/gcc/recog.cc:2804

The bug first seems to occur sometime between g:6043bfbd89b335dd
from yesterday and g:081fddbbcf979022 from this morning. 

There are 47 commits in this range.

Reply via email to