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-02-05 04:51:19 -0800
commitda048172cd61724b9b4a8c466b192d90e798b6cc (patch)
tree8b71107d157ac5270d588e84a7b55b0a33bb72cc
parentc26f446610c0007733984c742c3685f1a3468cd9 (diff)
downloadgcc-da048172cd61724b9b4a8c466b192d90e798b6cc.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