OSDN Git Service

* (convert_move): Use zero_extendpsisi2 to do an unsigned extension
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Oct 2000 18:07:28 +0000 (18:07 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Oct 2000 18:07:28 +0000 (18:07 +0000)
from PSImode to SImode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36729 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index 2b01059..4438b3d 100644 (file)
@@ -1,3 +1,8 @@
+Thu Oct  5 19:04:18 2000  J"orn Rennecke <amylaar@redhat.co.uk>
+
+       * (convert_move): Use zero_extendpsisi2 to do an unsigned extension
+       from PSImode to SImode.
+
 2000-10-05  Jakub Jelinek  <jakub@redhat.com>
 
        * emit-rtl.c (gen_lowpart_common) [REAL_ARITHMETICS]: Fix conversion
index 0185922..ee68dff 100644 (file)
@@ -1005,12 +1005,19 @@ convert_move (to, from, unsignedp)
       else
        {
 #ifdef HAVE_extendpsisi2
-         if (HAVE_extendpsisi2)
+         if (! unsignedp && HAVE_extendpsisi2)
            {
              emit_unop_insn (CODE_FOR_extendpsisi2, to, from, UNKNOWN);
              return;
            }
 #endif /* HAVE_extendpsisi2 */
+#ifdef HAVE_zero_extendpsisi2
+         if (unsignedp && HAVE_zero_extendpsisi2)
+           {
+             emit_unop_insn (CODE_FOR_zero_extendpsisi2, to, from, UNKNOWN);
+             return;
+           }
+#endif /* HAVE_zero_extendpsisi2 */
          abort ();
        }
     }