summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-13 16:41:46 +0000
committerH.J. Lu <hjl.tools@gmail.com>2016-04-16 07:47:38 -0700
commit5ad24ad2194b3189e690f6de399121c7ebf86a5f (patch)
tree6e9e92b3dca780b27bc9ea6f2f10075d8f347c4a
parent4a1fa2b3000dfa263bb4178ea0b198b3a2ed19c5 (diff)
downloadgcc-5ad24ad2194b3189e690f6de399121c7ebf86a5f.tar.gz
Rewrite FLT_EVAL_METHOD to account for TARGET_SSE2
* config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for TARGET_SSE_MATH without TARGET_SSE2. Rewrite. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232328 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/config/i386/i386.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 982a3b3b25c..1a369c2c6c0 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -686,8 +686,11 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
only SSE, rounding is correct; when using both SSE and the FPU,
the rounding precision is indeterminate, since either may be chosen
apparently at random. */
-#define TARGET_FLT_EVAL_METHOD \
- (TARGET_MIX_SSE_I387 ? -1 : (TARGET_80387 && !TARGET_SSE_MATH) ? 2 : 0)
+#define TARGET_FLT_EVAL_METHOD \
+ (TARGET_80387 \
+ ? (TARGET_MIX_SSE_I387 ? -1 \
+ : (TARGET_SSE_MATH ? (TARGET_SSE2 ? 0 : -1) : 2)) \
+ : 0)
/* Whether to allow x87 floating-point arithmetic on MODE (one of
SFmode, DFmode and XFmode) in the current excess precision