OSDN Git Service

(simplify_comparison): Rearrange conditional in SUBREG case.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 1992 16:59:12 +0000 (16:59 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 1992 16:59:12 +0000 (16:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1886 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/combine.c

index e55b33d..f23ba1b 100644 (file)
@@ -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 ... */