diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-07 19:38:04 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-07 19:38:04 +0000 |
| commit | 344f3f9eb99d8572f342b42fbf04d0d3a90a19df (patch) | |
| tree | 8631ac3413ef224d9bd0f2b9ae942587cfb177c7 | |
| parent | f2c4656b63eabfa11fac30b99ae6c972dbc1a1b5 (diff) | |
| download | ppe42-gcc-344f3f9eb99d8572f342b42fbf04d0d3a90a19df.tar.gz ppe42-gcc-344f3f9eb99d8572f342b42fbf04d0d3a90a19df.zip | |
* optabs.c (expand_float): Search wider integer modes first.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62535 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/optabs.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8d93b132d7f..960dfbfffee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-02-07 Andrey Petrov <petrov@netbsd.org> + + * optabs.c (expand_float): Search wider integer modes first. + 2003-02-07 Bob Wilson <bob.wilson@acm.org> * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this diff --git a/gcc/optabs.c b/gcc/optabs.c index 92bfc359111..6fcdb1d9611 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -4807,10 +4807,10 @@ expand_float (to, from, unsignedp) wider mode. If the integer mode is wider than the mode of FROM, we can do the conversion signed even if the input is unsigned. */ - for (imode = GET_MODE (from); imode != VOIDmode; - imode = GET_MODE_WIDER_MODE (imode)) - for (fmode = GET_MODE (to); fmode != VOIDmode; - fmode = GET_MODE_WIDER_MODE (fmode)) + for (fmode = GET_MODE (to); fmode != VOIDmode; + fmode = GET_MODE_WIDER_MODE (fmode)) + for (imode = GET_MODE (from); imode != VOIDmode; + imode = GET_MODE_WIDER_MODE (imode)) { int doing_unsigned = unsignedp; |

