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]

Re: Should -msse3 enable fisttp?


Quoting Uros Bizjak <uros@kss-loka.si>:

>   Following simple patch should implement your suggested approach:
> 
> -march=prescott           enables fisttp
> -msse3                    enables fisttp
> -march=prescott -mno-sse3 enables fisttp
> 
> Otherwise fisttp is disabled.

This one also works for -mno-80387 and simplifies insn pattern constraints a bit:

2005-10-05  Uros Bizjak  <uros@kss-loka.si>

	* config/i386/i386.h (TARGET_FISTTP): Enable also for
	TARGET_SSE3 and only for TARGET_80387.
	* config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
	(fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
	Do not depend on TARGET_80387.

Uros.

Attachment: fisttp_2.diff
Description: Binary data


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