Commit 2d88fcc2 by Josh Conner Committed by Josh Conner

re PR rtl-optimization/23241 (Invalid code generated for comparison of uchar to 255)

	PR rtl-optimization/23241
	* combine.c (simplify_comparison): Fix error in determining
	whether to lift a subreg from comparison.

From-SVN: r102869
parent bf460b19
2005-08-08 Josh Conner <jconner@apple.com>
PR rtl-optimization/23241
* combine.c (simplify_comparison): Fix error in determining
whether to lift a subreg from comparison.
2005-08-08 David Edelsohn <edelsohn@gnu.org> 2005-08-08 David Edelsohn <edelsohn@gnu.org>
PR target/18506 PR target/18506
......
...@@ -10239,7 +10239,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1) ...@@ -10239,7 +10239,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1)
/* (A - C1) always sign-extends, like C2. */ /* (A - C1) always sign-extends, like C2. */
&& num_sign_bit_copies (a, inner_mode) && num_sign_bit_copies (a, inner_mode)
> (unsigned int) (GET_MODE_BITSIZE (inner_mode) > (unsigned int) (GET_MODE_BITSIZE (inner_mode)
- mode_width - 1))) - (mode_width - 1))))
{ {
op0 = SUBREG_REG (op0); op0 = SUBREG_REG (op0);
continue; continue;
......
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