This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
floor on i386
- To: gcc at gcc dot gnu dot org
- Subject: floor on i386
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Wed, 12 Sep 2001 11:26:09 -0500 (EST)
- Cc: lucier at math dot purdue dot edu (Brad Lucier)
I just reviewed the various threads on gcc.gnu.org about slow code
generated for the floor intrinsic.
If one had tree nodes or RTL nodes to express the sequence
Save rounding mode
Change rounding mode to round-down
Convert to integer
Restore rounding mode
then perhaps the rounding mode change changes could be moved
outside of loops where they occur, if there were no floating-point
instructions in the loop that needed the currently set rounding mode.
Brad Lucier