diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2013-04-08 15:46:24 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2013-04-08 16:46:24 +0100 |
commit | 8afab2373c39baa4ca468217d194324f874ce50d (patch) | |
tree | 065079d8b0bb50f8798fd53855f129becfaca370 | |
parent | 105766f3920ecdf28d19e1a322b1a58ba2bebf85 (diff) | |
download | gcc-8afab2373c39baa4ca468217d194324f874ce50d.zip gcc-8afab2373c39baa4ca468217d194324f874ce50d.tar.gz gcc-8afab2373c39baa4ca468217d194324f874ce50d.tar.bz2 |
epiphany.c (epiphany_select_cc_mode): Don't use CC_FPmode for ORDERED / UNORDERED.
* config/epiphany/epiphany.c (epiphany_select_cc_mode):
Don't use CC_FPmode for ORDERED / UNORDERED.
* config/epiphany/epiphany.md (cmpsf_ord): Make pattern
unconditional.
From-SVN: r197587
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/epiphany/epiphany.c | 3 | ||||
-rw-r--r-- | gcc/config/epiphany/epiphany.md | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ce6e267..3518822 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -11,6 +11,11 @@ (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1. (epiphany_expand_epilogue): Likewise. + * config/epiphany/epiphany.c (epiphany_select_cc_mode): + Don't use CC_FPmode for ORDERED / UNORDERED. + * config/epiphany/epiphany.md (cmpsf_ord): Make pattern + unconditional. + 2013-04-08 Jakub Jelinek <jakub@redhat.com> PR c++/34949 diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c index 1a0bfc3..7d251e3 100644 --- a/gcc/config/epiphany/epiphany.c +++ b/gcc/config/epiphany/epiphany.c @@ -335,7 +335,8 @@ epiphany_select_cc_mode (enum rtx_code op, { if (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT) { - if (TARGET_SOFT_CMPSF) + if (TARGET_SOFT_CMPSF + || op == ORDERED || op == UNORDERED) { if (op == EQ || op == NE) return CC_FP_EQmode; diff --git a/gcc/config/epiphany/epiphany.md b/gcc/config/epiphany/epiphany.md index d3ea98a..7c21a34 100644 --- a/gcc/config/epiphany/epiphany.md +++ b/gcc/config/epiphany/epiphany.md @@ -1757,7 +1757,7 @@ (clobber (reg:SI GPR_IP)) (clobber (reg:SI GPR_16)) (clobber (reg:SI GPR_LR))] - "TARGET_SOFT_CMPSF" + "" "%f0" [(set_attr "type" "sfunc")]) |