This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] require sse3 for fisttp
- From: Eric Christopher <echristo at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 15 Sep 2006 22:32:02 -0700
- Subject: Re: [patch] require sse3 for fisttp
- References: <450B8A9E.7070103@apple.com>
2006-09-15 Eric Christopher <echristo@apple.com>
* config/i386/i386.h (TARGET_FISTTP): Depend only on SSE3 and
387.
A patch would help. Attached.
-eric
Index: gcc/config/i386/i386.h
===================================================================
--- gcc/config/i386/i386.h (revision 116984)
+++ gcc/config/i386/i386.h (working copy)
@@ -175,8 +175,7 @@ extern int x86_prefetch_sse;
/* For sane SSE instruction set generation we need fcomi instruction. It is
safe to enable all CMOVE instructions. */
#define TARGET_CMOVE ((x86_cmove & (1 << ix86_arch)) || TARGET_SSE)
-#define TARGET_FISTTP (((x86_fisttp & (1 << ix86_arch)) || TARGET_SSE3) \
- && TARGET_80387)
+#define TARGET_FISTTP (TARGET_SSE3 && TARGET_80387)
#define TARGET_DEEP_BRANCH_PREDICTION (x86_deep_branch & TUNEMASK)
#define TARGET_BRANCH_PREDICTION_HINTS (x86_branch_hints & TUNEMASK)
#define TARGET_DOUBLE_WITH_ADD (x86_double_with_add & TUNEMASK)