OSDN Git Service

* expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Nov 2003 02:05:29 +0000 (02:05 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Nov 2003 02:05:29 +0000 (02:05 +0000)
when seeing if truncation or extension.

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

gcc/ChangeLog
gcc/expr.c

index 77ef784..b089988 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
+       when seeing if truncation or extension.
+
 2003-11-17  Eric Christopher  <echristo@redhat.com>
 
        * reload1.c (reload): Fix previous change.
index 9424bb9..2d4953f 100644 (file)
@@ -606,9 +606,9 @@ convert_move (rtx to, rtx from, int unsignedp)
       rtx value, insns;
       convert_optab tab;
 
-      if (GET_MODE_BITSIZE (from_mode) < GET_MODE_BITSIZE (to_mode))
+      if (GET_MODE_PRECISION (from_mode) < GET_MODE_PRECISION (to_mode))
        tab = sext_optab;
-      else if (GET_MODE_BITSIZE (from_mode) > GET_MODE_BITSIZE (to_mode))
+      else if (GET_MODE_PRECISION (from_mode) > GET_MODE_PRECISION (to_mode))
        tab = trunc_optab;
       else
        abort ();