Commit cfb8805e by Adam Nemet Committed by Adam Nemet

combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION check when…

combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION check when calling force_to_mode on TRUNCATE's operand.

	* combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
	check when calling force_to_mode on TRUNCATE's operand.

testsuite/
	* gcc.target/mips/truncate-3.c: New test.

From-SVN: r148827
parent 2fc61b4b
2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
* combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
check when calling force_to_mode on TRUNCATE's operand.
2009-06-22 Ian Lance Taylor <iant@google.com>
* config/rs6000/rs6000.opt: Move msched-epilog before
......
......@@ -4889,9 +4889,7 @@ combine_simplify_rtx (rtx x, enum machine_mode op0_mode, int in_dest)
if (GET_MODE_CLASS (mode) == MODE_PARTIAL_INT)
break;
if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT
&& TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode),
GET_MODE_BITSIZE (GET_MODE (XEXP (x, 0)))))
if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT)
SUBST (XEXP (x, 0),
force_to_mode (XEXP (x, 0), GET_MODE (XEXP (x, 0)),
GET_MODE_MASK (mode), 0));
......
2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
* gcc.target/mips/truncate-3.c: New test.
2009-06-22 Janus Weil <janus@gcc.gnu.org>
PR fortran/37254
......
/* Remove redundant operations in truncate's operand. */
/* { dg-options "-O -mgp64" } */
/* { dg-final { scan-assembler-not "\tandi?\t" } } */
f (long long d)
{
long long c = d & 0xffffffffff;
int i = (int) c;
g (i);
}
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