Commit e44846d6 by Richard Kenner Committed by Richard Kenner

expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if…

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
parent ccdf1a46
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.
......
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment