Patch to add missing PPC instruction
degger@fhm.edu
degger@fhm.edu
Mon Dec 17 12:54:00 GMT 2001
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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rs6000.diff
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20011217/2838af0f/attachment.ksh>
More information about the Gcc
mailing list