Commit 2bf29316 by Jim Wilson

(convert_modes): Can't truncate REG with gen_lowpart if

TRULY_NOOP_TRUNCATION doesn't allow it.

From-SVN: r6306
parent 44333223
...@@ -1223,7 +1223,9 @@ convert_modes (mode, oldmode, x, unsignedp) ...@@ -1223,7 +1223,9 @@ convert_modes (mode, oldmode, x, unsignedp)
|| (GET_MODE_SIZE (mode) <= GET_MODE_SIZE (oldmode) || (GET_MODE_SIZE (mode) <= GET_MODE_SIZE (oldmode)
&& ((GET_CODE (x) == MEM && ! MEM_VOLATILE_P (x) && ((GET_CODE (x) == MEM && ! MEM_VOLATILE_P (x)
&& direct_load[(int) mode]) && direct_load[(int) mode])
|| GET_CODE (x) == REG))))) || (GET_CODE (x) == REG
&& TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode),
GET_MODE_BITSIZE (GET_MODE (x)))))))))
{ {
/* ?? If we don't know OLDMODE, we have to assume here that /* ?? If we don't know OLDMODE, we have to assume here that
X does not need sign- or zero-extension. This may not be X does not need sign- or zero-extension. This may not be
......
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