This is the mail archive of the
mailing list for the GCC project.
PowerPC FPU support
- From: Michael Eager <eager at eagercon dot com>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Fri, 18 Aug 2006 12:18:54 -0700
- Subject: 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 firstname.lastname@example.org
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077