]> git.ipfire.org Git - thirdparty/gcc.git/commit
expmed.h (NUM_MODE_VECTOR_INT): Define.
authorNathan Froyd <froydnj@gcc.gnu.org>
Tue, 31 Jul 2012 02:44:35 +0000 (02:44 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Tue, 31 Jul 2012 02:44:35 +0000 (02:44 +0000)
commit2a261cd35fa089540f230ec74b380c9a3c1b2932
tree9c743c087dc8b5808d62742d25ee84c8a8d31f57
parentb959718f2c5118e21bbc5a1dc1b943f005233ad8
expmed.h (NUM_MODE_VECTOR_INT): Define.

* expmed.h (NUM_MODE_VECTOR_INT): Define.
(struct expmed_op_cheap, struct expmed_op_costs): New structures.
(struct target_expmed): Convert x_mul_highpart_cost and
x_mul_widen_cost fields to be indexed by integer modes.
Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
of type struct expmed_op_cheap.  Convert other cost fields to be
of type struct_expmed_op_costs.
(mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
indexing of respective fields.
(expmed_op_cheap_ptr): New function.
(sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
(expmed_op_cost_ptr): New function.
(add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
sdiv_cost_ptr, udiv_cost_ptr): Call it.

From-SVN: r189994
gcc/ChangeLog
gcc/expmed.h