From 89f1c7f2578fb5b069a4eb9ca676b4e6b7503ca1 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 18 Aug 1992 16:59:12 +0000 Subject: [PATCH] (simplify_comparison): Rearrange conditional in SUBREG case. From-SVN: r1886 --- gcc/combine.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 ... */ -- 2.30.2