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]

[PATCH] Peephole to generate fisttp


Hi,

This is for gcc for i386 with SSE3 enabled. For double to signed integer conversion, cvtsd2si is generally faster. However, if the source operand is already in ST(0), then gcc should emit fisttp instead. The patch handles this corner case.

Ok for 4.2?

Thanks,

Evan

2005-10-19 Evan Cheng <evan.cheng@apple.com>

    * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_1 peephole2):
    New.

Attachment: patch.fsf.4209085.txt
Description: Text document


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