[Bug target/93333] ICE: RTL check: expected code 'const_int', have 'and' in riscv_rtx_costs, at config/riscv/riscv.c:1645

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 21 20:46:00 GMT 2020


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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

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

commit r10-6118-gbd0a3e244d94ad4a5e41f01ebf285f0861cb4a03
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Jan 21 21:43:03 2020 +0100

    riscv: Fix up riscv_rtx_costs for RTL checking (PR target/93333)

    As mentioned in the PR, during combine rtx_costs can be called sometimes
    even on RTL that has not been validated yet and so can contain even
operands
    that aren't valid in any instruction.

    2020-01-21  Jakub Jelinek  <jakub@redhat.com>

        PR target/93333
        * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
        the last two operands are CONST_INT_P before using them as such.

        * gcc.c-torture/compile/pr93333.c: New test.


More information about the Gcc-bugs mailing list