optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.

2005-10-31  J"orn Rennecke <joern.rennecke@st.com>

	* optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.

From-SVN: r106271
This commit is contained in:
J"orn Rennecke 2005-10-31 13:30:14 +00:00 committed by Joern Rennecke
parent 047f4b2c78
commit cd7ec127de
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
* optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/23492

View File

@ -2434,7 +2434,9 @@ expand_unop (enum machine_mode mode, optab unoptab, rtx op0, rtx target,
if (temp)
{
if (class != MODE_INT)
if (class != MODE_INT
|| !TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode),
GET_MODE_BITSIZE (wider_mode)))
{
if (target == 0)
target = gen_reg_rtx (mode);