Commit 34ed3bb0 by Kazu Hirata Committed by Kazu Hirata

combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0) to (eq (and X 1) 0).

	* combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
	to (eq (and X 1) 0).

From-SVN: r69300
parent 1a7d0840
2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
* combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
to (eq (and X 1) 0).
2003-07-13 Andreas Jaeger <aj@suse.de>
* config.gcc: Add pmmintrin.h for x86_64-*-*.
......
......@@ -11059,6 +11059,17 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1)
}
}
/* Convert (ne (and (not X) 1) 0) to (eq (and X 1) 0). */
if (const_op == 0 && equality_comparison_p
&& XEXP (op0, 1) == const1_rtx
&& GET_CODE (XEXP (op0, 0)) == NOT)
{
op0 = simplify_and_const_int
(op0, mode, XEXP (XEXP (op0, 0), 0), (HOST_WIDE_INT) 1);
code = (code == NE ? EQ : NE);
continue;
}
/* Convert (ne (and (lshiftrt (not X)) 1) 0) to
(eq (and (lshiftrt X) 1) 0). */
if (const_op == 0 && equality_comparison_p
......
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