<div dir="ltr">Sign- and zero-extension folding was slightly incorrect because it wasn't checking that the shift on extensions was zero. Further, I recently added AND rd, rn, #255 as a form of 8-bit zero extension, and failed to add the folding code for it.<div>
<br></div><div>This patch fixes both issues.<br><div><br></div><div style>This patch fixes both, and the test should remain the same:</div><div style>  test/CodeGen/ARM/fast-isel-fold.ll<br></div><div style><br></div></div>
</div>