Revision: 25174
Author:   [email protected]
Date:     Wed Nov  5 22:48:43 2014 UTC
Log:      MIPS: Fix uint32div bug after r25103.

The div and mod instructions on MIPS are not safe for rhs 0.

TEST=test/mjsunit/asm/uint32div.js
BUG=
[email protected]

Review URL: https://codereview.chromium.org/704013002
https://code.google.com/p/v8/source/detail?r=25174

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

=======================================
--- /branches/bleeding_edge/src/compiler/mips/instruction-selector-mips.cc Tue Nov 4 19:47:51 2014 UTC +++ /branches/bleeding_edge/src/compiler/mips/instruction-selector-mips.cc Wed Nov 5 22:48:43 2014 UTC
@@ -718,10 +718,7 @@
 // static
 MachineOperatorBuilder::Flags
 InstructionSelector::SupportedMachineOperatorFlags() {
-  return MachineOperatorBuilder::kInt32DivIsSafe |
-         MachineOperatorBuilder::kInt32ModIsSafe |
-         MachineOperatorBuilder::kUint32DivIsSafe |
-         MachineOperatorBuilder::kUint32ModIsSafe;
+  return MachineOperatorBuilder::kNoFlags;
 }

 }  // namespace compiler

--
--
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