diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-24 02:28:41 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-24 02:28:41 +0000 |
commit | 994db39037b8859894308b6c238b51ddcc4e43a1 (patch) | |
tree | fdc5589420c8477ac11336433d27bf34a7c6705a /gcc/reg-stack.c | |
parent | 7f6f8932d79ee2011c46e470cb1a424d0c151b54 (diff) | |
download | gcc-994db39037b8859894308b6c238b51ddcc4e43a1.tar.gz |
* reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
if flag_unsafe_math_optimizations.
* config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
and TARGET_80387 expand using truncdfsf2_noop pattern.
(truncxfsf2): Likewise using truncxfsf2_noop.
(truncxfdf2): Likewise using truncxfdf2_noop.
(truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r-- | gcc/reg-stack.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 22b290fd5cb..31ebddb4640 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -574,6 +574,13 @@ get_true_reg (rtx *pat) case FIX: case FLOAT_EXTEND: pat = & XEXP (*pat, 0); + break; + + case FLOAT_TRUNCATE: + if (!flag_unsafe_math_optimizations) + return pat; + pat = & XEXP (*pat, 0); + break; } } |