From f3b633cc0c6473c24d46ec4ce5c0e9190e1b3d64 Mon Sep 17 00:00:00 2001 From: "paul.lind@imgtec.com" Date: Wed, 5 Nov 2014 22:48:43 +0000 Subject: [PATCH] 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= 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/mips/instruction-selector-mips.cc b/src/compiler/mips/instruction-selector-mips.cc index 13df133..4862e98 100644 --- a/src/compiler/mips/instruction-selector-mips.cc +++ b/src/compiler/mips/instruction-selector-mips.cc @@ -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 -- 2.7.4