OSDN Git Service

* optabs.c (expand_float): Search wider integer modes first.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Feb 2003 19:38:04 +0000 (19:38 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 7 Feb 2003 19:38:04 +0000 (19:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62535 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/optabs.c

index 8d93b13..960dfbf 100644 (file)
@@ -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
index 92bfc35..6fcdb1d 100644 (file)
@@ -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;