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]

Re: PowerPC -- support single-precision FPU


David Edelsohn wrote:
Michael Eager writes:

Should floatsisf2_internal have the same constraints as floatdidf2?
Yes.

The condition for floatsisf2_internal should also be changed to
"TARGET_HARD_FLOAT && TARGET_FPRS && TARGET_SINGLE_FLOAT && ! TARGET_DOUBLE_FLOAT"
so that it is only matched for -fsingle-float and not for -fdouble-float
or classic PowerPC FPU.

The floatsisf2_internal pattern also needs TARGET_POWERPC64 condition. fcfid only is present on processors that implement PowerPC64.

Is the floatsisf2_internal pattern even necessary?  Is that RTL and
instruction ever generated
for the Xilinx configuration?

I'll move this into the Xilinx FPU-specific patch, conditioned with the flag for that FPU. Xilinx reused the opcode for their SI->SF conversion instruction.

The floatsisf2 define_expand pattern has final condition !TARGET_FPRS,
which was intended
for SPE and is false for the Xilinx processor.

Yep.



-- 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]