Bug 99432 - ICE in extract_constrain_insn, at recog.c:2670 when building libgcc for i686
Summary: ICE in extract_constrain_insn, at recog.c:2670 when building libgcc for i686
Status: RESOLVED DUPLICATE of bug 99422
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 99422
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-06 19:46 UTC by Ítalo Matias
Modified: 2021-03-07 02:27 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ítalo Matias 2021-03-06 19:46:12 UTC
gcc version 11.0.1 20210306 (experimental), configured with: ../configure --target=i686-elf --prefix=/home/italo/chos/toolchain/kernel/x86/out --enable-languages=c,c++ --enable-lto --disable-multilib --without-headers --disable-nls --disable-werror

Command Line:
/home/italo/chos/toolchain/build/gcc/build/./gcc/xgcc -B/home/italo/chos/toolchain/build/gcc/build/./gcc/ -B/home/italo/chos/toolchain/kernel/x86/out/i686-elf/bin/ -B/home/italo/chos/toolchain/kernel/x86/out/i686-elf/lib/ -isystem /home/italo/chos/toolchain/kernel/x86/out/i686-elf/include -isystem /home/italo/chos/toolchain/kernel/x86/out/i686-elf/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include  -fpic -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -fpic -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include  -DHAVE_CC_TLS  -Wno-missing-prototypes -Wno-type-limits -o divtf3.o -MT divtf3.o -MD -MP -MF divtf3.dep  -c ../../../libgcc/soft-fp/divtf3.c -fvisibility=hidden -DHIDE_EXPORTS

Command Output:
../../../libgcc/soft-fp/divtf3.c: In function '__divtf3':
../../../libgcc/soft-fp/divtf3.c:51:1: error: unrecognizable insn:
   51 | }
      | ^
(insn 1199 3373 3715 79 (parallel [
            (set (reg:SI 5 di [623])
                (asm_operands:SI ("sub{l} {%11,%3|%3,%11}
        sbb{l} {%9,%2|%2,%9}
        sbb{l} {%7,%1|%1,%7}
        sbb{l} {%5,%0|%0,%5}") ("=r") 0 [
                        (reg:SI 5 di [623])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -80 [0xffffffffffffffb0])) [5 A_f[2]+0 S4 A64])
                        (reg:SI 1 dx [624])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -84 [0xffffffffffffffac])) [5 A_f[1]+0 S4 A32])
                        (reg:SI 4 si [625])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -88 [0xffffffffffffffa8])) [5 A_f[0]+0 S4 A128])
                        (reg:SI 0 ax [626])
                        (mem:SI (plus:SI (plus:SI (mult:SI (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                                (const_int -112 [0xffffffffffffff90])) [10 %sfp+-88 S4 A32])
                                        (const_int 4 [0x4]))
                                    (reg/f:SI 6 bp))
                                (const_int -40 [0xffffffffffffffd8])) [5 MEM[(unsigned int *)_7]+0 S4 A32])
                    ]
                     [
                        (asm_input:SI ("0") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("1") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("2") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("3") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                    ]
                     [] ../../../libgcc/soft-fp/divtf3.c:46))
            (set (reg:SI 1 dx [624])
                (asm_operands:SI ("sub{l} {%11,%3|%3,%11}
        sbb{l} {%9,%2|%2,%9}
        sbb{l} {%7,%1|%1,%7}
        sbb{l} {%5,%0|%0,%5}") ("=&r") 1 [
                        (reg:SI 5 di [623])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -80 [0xffffffffffffffb0])) [5 A_f[2]+0 S4 A64])
                        (reg:SI 1 dx [624])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -84 [0xffffffffffffffac])) [5 A_f[1]+0 S4 A32])
                        (reg:SI 4 si [625])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -88 [0xffffffffffffffa8])) [5 A_f[0]+0 S4 A128])
                        (reg:SI 0 ax [626])
                        (mem:SI (plus:SI (plus:SI (mult:SI (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                                (const_int -112 [0xffffffffffffff90])) [10 %sfp+-88 S4 A32])
                                        (const_int 4 [0x4]))
                                    (reg/f:SI 6 bp))
                                (const_int -40 [0xffffffffffffffd8])) [5 MEM[(unsigned int *)_7]+0 S4 A32])
                    ]
                     [
                        (asm_input:SI ("0") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("1") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("2") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("3") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                    ]
                     [] ../../../libgcc/soft-fp/divtf3.c:46))
            (set (reg:SI 4 si [625])
                (asm_operands:SI ("sub{l} {%11,%3|%3,%11}
        sbb{l} {%9,%2|%2,%9}
        sbb{l} {%7,%1|%1,%7}
        sbb{l} {%5,%0|%0,%5}") ("=&r") 2 [
                        (reg:SI 5 di [623])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -80 [0xffffffffffffffb0])) [5 A_f[2]+0 S4 A64])
                        (reg:SI 1 dx [624])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -84 [0xffffffffffffffac])) [5 A_f[1]+0 S4 A32])
                        (reg:SI 4 si [625])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -88 [0xffffffffffffffa8])) [5 A_f[0]+0 S4 A128])
                        (reg:SI 0 ax [626])
                        (mem:SI (plus:SI (plus:SI (mult:SI (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                                (const_int -112 [0xffffffffffffff90])) [10 %sfp+-88 S4 A32])
                                        (const_int 4 [0x4]))
                                    (reg/f:SI 6 bp))
                                (const_int -40 [0xffffffffffffffd8])) [5 MEM[(unsigned int *)_7]+0 S4 A32])
                    ]
                     [
                        (asm_input:SI ("0") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("1") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("2") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("3") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                    ]
                     [] ../../../libgcc/soft-fp/divtf3.c:46))
            (set (reg:SI 0 ax [626])
                (asm_operands:SI ("sub{l} {%11,%3|%3,%11}
        sbb{l} {%9,%2|%2,%9}
        sbb{l} {%7,%1|%1,%7}
        sbb{l} {%5,%0|%0,%5}") ("=&r") 3 [
                        (reg:SI 5 di [623])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -80 [0xffffffffffffffb0])) [5 A_f[2]+0 S4 A64])
                        (reg:SI 1 dx [624])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -84 [0xffffffffffffffac])) [5 A_f[1]+0 S4 A32])
                        (reg:SI 4 si [625])
                        (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                (const_int -88 [0xffffffffffffffa8])) [5 A_f[0]+0 S4 A128])
                        (reg:SI 0 ax [626])
                        (mem:SI (plus:SI (plus:SI (mult:SI (mem/c:SI (plus:SI (reg/f:SI 6 bp)
                                                (const_int -112 [0xffffffffffffff90])) [10 %sfp+-88 S4 A32])
                                        (const_int 4 [0x4]))
                                    (reg/f:SI 6 bp))
                                (const_int -40 [0xffffffffffffffd8])) [5 MEM[(unsigned int *)_7]+0 S4 A32])
                    ]
                     [
                        (asm_input:SI ("0") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("1") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("2") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("3") ../../../libgcc/soft-fp/divtf3.c:46)
                        (asm_input:SI ("g") ../../../libgcc/soft-fp/divtf3.c:46)
                    ]
                     [] ../../../libgcc/soft-fp/divtf3.c:46))
            (clobber (reg:CC 17 flags))
        ]) "../../../libgcc/soft-fp/divtf3.c":46:3 -1
     (nil))
during RTL pass: reload
../../../libgcc/soft-fp/divtf3.c:51:1: internal compiler error: in extract_constrain_insn, at recog.c:2670
0x6adfb2 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
        ../../gcc/rtl-error.c:108
0x6adfce _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/rtl-error.c:116
0x6ac5f0 extract_constrain_insn(rtx_insn*)
        ../../gcc/recog.c:2670
0xc2c387 check_rtl
        ../../gcc/lra.c:2087
0xc30361 lra(_IO_FILE*)
        ../../gcc/lra.c:2505
0xbeaa89 do_reload
        ../../gcc/ira.c:5827
0xbeaa89 execute
        ../../gcc/ira.c:6013
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Preprocessed File: https://pastebin.com/raw/VKvFbsEu
Comment 1 Andrew Pinski 2021-03-06 20:38:42 UTC
This is most likely a dup of bug 99422.
Comment 2 Andrew Pinski 2021-03-07 02:27:53 UTC
Dup in the end.

*** This bug has been marked as a duplicate of bug 99422 ***