MIPS: Fix uint32div bug after r25103.
authorpaul.lind@imgtec.com <paul.lind@imgtec.com>
Wed, 5 Nov 2014 22:48:43 +0000 (22:48 +0000)
committerpaul.lind@imgtec.com <paul.lind@imgtec.com>
Wed, 5 Nov 2014 22:49:13 +0000 (22:49 +0000)
The div and mod instructions on MIPS are not safe for rhs 0.

TEST=test/mjsunit/asm/uint32div.js
BUG=
R=akos.palfi@imgtec.com

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

Cr-Commit-Position: refs/heads/master@{#25174}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25174 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/compiler/mips/instruction-selector-mips.cc

index 13df1336f2884dc4311f21b27919c60a060e3886..4862e986046f16bae1a7893d9bdb37adfef76349 100644 (file)
@@ -718,10 +718,7 @@ void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) {
 // static
 MachineOperatorBuilder::Flags
 InstructionSelector::SupportedMachineOperatorFlags() {
-  return MachineOperatorBuilder::kInt32DivIsSafe |
-         MachineOperatorBuilder::kInt32ModIsSafe |
-         MachineOperatorBuilder::kUint32DivIsSafe |
-         MachineOperatorBuilder::kUint32ModIsSafe;
+  return MachineOperatorBuilder::kNoFlags;
 }
 
 }  // namespace compiler