Revision: 22744
Author:   [email protected]
Date:     Thu Jul 31 09:57:59 2014 UTC
Log:      Fix detection of UBFX in case of Word32And with immediate.

[email protected]

Review URL: https://codereview.chromium.org/438563002
http://code.google.com/p/v8/source/detail?r=22744

Modified:
 /branches/bleeding_edge/src/compiler/arm/instruction-selector-arm.cc

=======================================
--- /branches/bleeding_edge/src/compiler/arm/instruction-selector-arm.cc Thu Jul 31 07:44:29 2014 UTC +++ /branches/bleeding_edge/src/compiler/arm/instruction-selector-arm.cc Thu Jul 31 09:57:59 2014 UTC
@@ -418,7 +418,7 @@
     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());

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to