Commit 7309abea authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Fix detection of UBFX in case of Word32And with immediate.

TBR=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/438563002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22744 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bcbb39e0
......@@ -418,7 +418,7 @@ void InstructionSelector::VisitWord32And(Node* node) {
uint32_t value = m.right().Value();
uint32_t width = CompilerIntrinsics::CountSetBits(value);
uint32_t msb = CompilerIntrinsics::CountLeadingZeros(value);
if (msb + width == 32) {
if (width != 0 && msb + width == 32) {
ASSERT_EQ(0, CompilerIntrinsics::CountTrailingZeros(value));
if (m.left().IsWord32Shr()) {
Int32BinopMatcher mleft(m.left().node());
......
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