RISC-V: Increase mult/div cost if not implemented in hardware.
authorAndrew Waterman <andrew@sifive.com>
Tue, 16 Jan 2018 03:03:09 +0000 (03:03 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 16 Jan 2018 03:03:09 +0000 (19:03 -0800)
commitff3cc569b2d3ba49fe6e2dc07ad761b5d9431c8a
treef6e0686b0c0cd220100a123726f7a7ba4ec30c34
parent66a366a05a39ce91597fe192e3d943efd810eb87
RISC-V: Increase mult/div cost if not implemented in hardware.

2018-01-15  Andrew Waterman  <andrew@sifive.com>
gcc/
* config/riscv/riscv.c (riscv_rtx_costs) <MULT>: Increase cost if
!TARGET_MUL.
<UDIV>: Increase cost if !TARGET_DIV.

From-SVN: r256722
gcc/ChangeLog
gcc/config/riscv/riscv.c