aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJosh Conner <jconner@apple.com>2005-08-08 18:30:09 +0000
committerJosh Conner <jconner@gcc.gnu.org>2005-08-08 18:30:09 +0000
commit2d88fcc27deb188430c8192197b69e2e1af54631 (patch)
treed02eef1e3e51a0c6d9fa7707fd2128a9040ae527 /gcc/combine.c
parentbf460b19f02df9a6409ebc8e16ba8a3b17eb1813 (diff)
downloadgcc-2d88fcc27deb188430c8192197b69e2e1af54631.zip
gcc-2d88fcc27deb188430c8192197b69e2e1af54631.tar.gz
gcc-2d88fcc27deb188430c8192197b69e2e1af54631.tar.bz2
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
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index d5be605..5628e24 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -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;