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    [EMAIL PROTECTED]
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

Reply via email to