From: Richard Stallman Date: Tue, 18 Aug 1992 16:59:12 +0000 (+0000) Subject: (simplify_comparison): Rearrange conditional in SUBREG case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89f1c7f2578fb5b069a4eb9ca676b4e6b7503ca1;p=gcc.git (simplify_comparison): Rearrange conditional in SUBREG case. From-SVN: r1886 --- diff --git a/gcc/combine.c b/gcc/combine.c index e55b33d55dd..f23ba1be7d5 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7544,10 +7544,12 @@ simplify_comparison (code, pop0, pop1) break; case SUBREG: - /* If the inner mode is smaller and we are extracting the low - part, we can treat the SUBREG as if it were a ZERO_EXTEND. */ - if (! subreg_lowpart_p (op0) - || GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (op0))) >= mode_width) + /* If the inner mode is narrower and we are extracting the low part, + we can treat the SUBREG as if it were a ZERO_EXTEND. */ + if (subreg_lowpart_p (op0) + && GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (op0))) < mode_width) + /* Fall through */ ; + else break; /* ... fall through ... */