diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2003-11-18 02:05:29 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2003-11-17 21:05:29 -0500 |
commit | e44846d6cc11782725608b7ef84b61daafe17abc (patch) | |
tree | 864b89cffbfe1a74cab08d36a834c931bc3e4571 /gcc/expr.c | |
parent | ccdf1a46ee4a3425bee1602ccf758a2bb9364571 (diff) | |
download | gcc-e44846d6cc11782725608b7ef84b61daafe17abc.zip gcc-e44846d6cc11782725608b7ef84b61daafe17abc.tar.gz gcc-e44846d6cc11782725608b7ef84b61daafe17abc.tar.bz2 |
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
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 (); |