From e44846d6cc11782725608b7ef84b61daafe17abc Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 18 Nov 2003 02:05:29 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 77ef7842ef7..b089988e73f 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 9424bb9d434..2d4953f8b14 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 (); -- 2.30.2