]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/convert.c
optabs.c (expand_binop): Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE where...
[thirdparty/gcc.git] / gcc / convert.c
index 459d5337e35450bd24a6678dfc50ed9f632c7aee..84ba13d1812f4b3439fceee55d2ad5d7c6ca4646 100644 (file)
@@ -583,7 +583,7 @@ convert_to_integer (tree type, tree expr)
             be cleared.  */
          if (TYPE_UNSIGNED (type) != TYPE_UNSIGNED (TREE_TYPE (expr))
              && (TYPE_PRECISION (TREE_TYPE (expr))
-                 != GET_MODE_BITSIZE (TYPE_MODE (TREE_TYPE (expr)))))
+                 != GET_MODE_PRECISION (TYPE_MODE (TREE_TYPE (expr)))))
            code = CONVERT_EXPR;
          else
            code = NOP_EXPR;
@@ -602,7 +602,7 @@ convert_to_integer (tree type, tree expr)
         type corresponding to its mode, then do a nop conversion
         to TYPE.  */
       else if (TREE_CODE (type) == ENUMERAL_TYPE
-              || outprec != GET_MODE_BITSIZE (TYPE_MODE (type)))
+              || outprec != GET_MODE_PRECISION (TYPE_MODE (type)))
        return build1 (NOP_EXPR, type,
                       convert (lang_hooks.types.type_for_mode
                                (TYPE_MODE (type), TYPE_UNSIGNED (type)),