[turbofan] Optimize remainder of integer division by unknown power of two.
authorBenedikt Meurer <bmeurer@chromium.org>
Fri, 14 Nov 2014 08:21:04 +0000 (09:21 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Fri, 14 Nov 2014 08:21:18 +0000 (08:21 +0000)
commit45ff9d53c5c3fe4f6c9d58a7e3d200abc555a9d8
tree6333c828bf5448c6fad8ffde7017b1afc179f776
parente75a81fe96ff043f2d07c278148828a3856d6934
[turbofan] Optimize remainder of integer division by unknown power of two.

Drive-by-Fix: minint % 0 was broken on ARM, but we didn't notice because
there was no test covering that case...

TEST=msjunit
R=svenpanne@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#25347}
src/compiler/arm/instruction-selector-arm.cc
src/compiler/machine-operator.h
src/compiler/simplified-lowering.cc
test/mjsunit/asm/int32mod-constant.js [new file with mode: 0644]
test/mjsunit/asm/int32mod.js
test/mjsunit/asm/uint32mod-constant.js [new file with mode: 0644]
test/mjsunit/asm/uint32mod.js