This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [08/77] Simplify gen_trunc/extend_conv_libfunc


On 07/13/2017 02:40 AM, Richard Sandiford wrote:
> Replace checks of:
> 
>   GET_MODE_CLASS (fmode) != MODE_FLOAT && !DECIMAL_FLOAT_MODE_P (fmode)
> 
> with !is_a <scalar_float_mode> and use MODE_CLASS equality/inequality
> instead of:
> 
>   (GET_MODE_CLASS (tmode) == MODE_FLOAT && DECIMAL_FLOAT_MODE_P (fmode))
>   || (GET_MODE_CLASS (fmode) == MODE_FLOAT && DECIMAL_FLOAT_MODE_P (tmode))
> 
> and:
> 
>   (GET_MODE_CLASS (tmode) == MODE_FLOAT
>    && GET_MODE_CLASS (fmode) == MODE_FLOAT)
>   || (DECIMAL_FLOAT_MODE_P (fmode) && DECIMAL_FLOAT_MODE_P (tmode))
> 
> 2017-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
> 	    Alan Hayward  <alan.hayward@arm.com>
> 	    David Sherwood  <david.sherwood@arm.com>
> 
> gcc/
> 	* optabs-libfuncs.c (gen_trunc_conv_libfunc): Use is_a
> 	<scalar_float_mode>.  Simplify.
> 	(gen_extend_conv_libfunc): Likewise.

OK.
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]