From: Richard Kenner Date: Tue, 18 Nov 2003 02:05:29 +0000 (+0000) Subject: expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if trunc... X-Git-Tag: releases/gcc-3.4.0~2252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e44846d6cc11782725608b7ef84b61daafe17abc;p=thirdparty%2Fgcc.git expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if truncation or extension. * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if truncation or extension. From-SVN: r73689 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 77ef7842ef79..b089988e73f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-17 Richard Kenner + + * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize + when seeing if truncation or extension. + 2003-11-17 Eric Christopher * reload1.c (reload): Fix previous change. diff --git a/gcc/expr.c b/gcc/expr.c index 9424bb9d434a..2d4953f8b143 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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 ();