]> gcc.gnu.org Git - gcc.git/commit
riscv: Fix up riscv_rtx_costs for RTL checking (PR target/93333)
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Jan 2020 16:55:23 +0000 (17:55 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 22 Jan 2020 19:12:57 +0000 (20:12 +0100)
commit51faa475c91c5373b680889664d1d52a73a79776
tree821777df6dda6b40b6a7c51b1afe419508df8abd
parent1abe8d45b71fa42f5d1690920e9c9d0087168b83
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.
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr93333.c [new file with mode: 0644]
This page took 0.062404 seconds and 6 git commands to generate.