[Bug rtl-optimization/97540] [11 Regression] ICE in lra_set_insn_recog_data, at lra.c:1004 since r11-4202-g4de7b010038933dd

crazylht at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 23 14:01:05 GMT 2020


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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
2588           /* For special_memory_operand, there could be a memory operand
inside,
2589              and it would cause a mismatch for constraint_satisfied_p.  */
2590           if (UNARY_P (op) && op == extract_mem_from_operand (op))
2591             op = XEXP (op, 0);

the upper code is supposed to only prevent special_memory_constraint, but
mistakenly handled below insn.

(insn 7 6 10 2 (parallel [
            (asm_operands/v ("") ("") 0 [
                    (not:SI (mem/c:SI (symbol_ref:DI
("mt7615_add_interface_dev_0") [flags 0x2]  <var_decl 0x7f623bcccb40
mt7615_add_interface_dev_0>) [1 mt7615_add_interface_dev_0+0 S4 A32]))
                ]
                 [
                    (asm_input:SI ("rm") test.c:2)
                ]
                 [] test.c:2)
            (clobber (reg:CC 17 flags))
        ]) "test.c":2:18 -1
     (expr_list:REG_UNUSED (reg:CC 17 flags)
        (nil)))


More information about the Gcc-bugs mailing list