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
This commit is contained in:
Josh Conner 2005-08-08 18:30:09 +00:00 committed by Josh Conner
parent bf460b19f0
commit 2d88fcc27d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>
PR target/18506

View File

@ -10239,7 +10239,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1)
/* (A - C1) always sign-extends, like C2. */
&& num_sign_bit_copies (a, inner_mode)
> (unsigned int) (GET_MODE_BITSIZE (inner_mode)
- mode_width - 1)))
- (mode_width - 1))))
{
op0 = SUBREG_REG (op0);
continue;