Commit 89f1c7f2 by Richard Stallman

(simplify_comparison): Rearrange conditional in SUBREG case.

From-SVN: r1886
parent 60d00117
...@@ -7544,10 +7544,12 @@ simplify_comparison (code, pop0, pop1) ...@@ -7544,10 +7544,12 @@ simplify_comparison (code, pop0, pop1)
break; break;
case SUBREG: case SUBREG:
/* If the inner mode is smaller and we are extracting the low /* If the inner mode is narrower and we are extracting the low part,
part, we can treat the SUBREG as if it were a ZERO_EXTEND. */ we can treat the SUBREG as if it were a ZERO_EXTEND. */
if (! subreg_lowpart_p (op0) if (subreg_lowpart_p (op0)
|| GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (op0))) >= mode_width) && GET_MODE_BITSIZE (GET_MODE (SUBREG_REG (op0))) < mode_width)
/* Fall through */ ;
else
break; break;
/* ... fall through ... */ /* ... fall through ... */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment