ARM PATCH: Fix fix patterns

Richard Earnshaw rearnsha@arm.com
Mon Mar 10 11:35:00 GMT 2003


> On Sun, 9 Mar 2003, Richard Earnshaw wrote:
> > The manual says that fix:MODE_INT converts to integer, but has unspecified
> > rounding; while fix:MODE_FLOAT rounds towards zero.  This patch fixes the
> > arm patterns to show the rounding step which was previously missing.
> >
> > I thought there was a PR referring to this, but when I went to look for it
> > I couldn't find it.
> 
> Do you mean target/5985?  It points out that targets should
> change as in your patch.
> 
> brgds, H-P
> 

Yep, that's the one.

Richard, In reply to your comment in that PR, the documentation for FIX is 
very confusingly written.  There are two entries for FIX in rtl.texi, one 
for fix:MODE_FLOAT and one for fix:MODE_INT.  The first describes a 
rounding operation and the second a conversion operation.  Maybe the 
former should be given a different RTL code (ROUND?).

R.



More information about the Gcc-patches mailing list