This is the mail archive of the gcc@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]

PowerPC FPU support


I'm adding support to GCC for a different PPC floating point unit.
It's similar to the standard PPC FPU in that it supports most of
the same instructions and all operation are in FP registers.
The FPU comes in a single-precision and double-precision variant.
There's also an option of having no FPU.

Rather than creating yet another configuration with another
TARGET_<whatever> definition and creating ever more cluttered
condition expression, I've thought to replace TARGET_FPRS with
TARGET_FPRS_SINGLE and TARGET_FPRS_DOUBLE.  These would both have
the value 1 for standard PPC, and 1 or 0 depending on whether the
single-or double-precision FPU was available, as specified by a new
option -mfpu=.  There would be some added instruction patterns
for the single-precision operations.

Does this sound like a reasonable approach or is there a better
way to do this?

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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