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] |
Hija, the attached patch is supposed to add the the fres instruction and necessary computation code to the rs6000 backend. fres is a "floating point single precision reciprocal" mnemonic which is available on at least the 7400 and 7410 (haven't heard back from Dale which other CPUs have it, but they can be added later) which is faster than a single precision divide and spares the storage for the 1.0, a register and the necessary load instructions to get them into memory. This has boostrapped on powerpc-linux-gnu and passed the testsuite without regressions. -- Servus, Daniel 2001-12-17 Daniel Egger <degger@fhm.edu> * config/rs6000/rs6000.md: Add missing fres mnemonic (floating point single precision reciprocal) to the 7400 definition and emit it. * config/rs6000/rs6000.c (one_fp_constant): Add helper function to check for a float 1.0 constant... * config/rs6000/rs6000.h: ... and declare it here.
Attachment:
rs6000.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |