[SubZero] Use DIV instruction instead of TargetHelperCall
Use DIV/DIVU instructions provided by MIPS32 ISA instead of calling target
helper function (__divsi3 etc.). These instructions give 32-bit quotient and
remainder in 32-bit special LO/HI registers respectively. An additional
instructions to check for divide-by-zero (Trap if equal) is emitted after the
DIV/DIVU instructions.
R=stichnot@chromium.org
Review URL: https://codereview.chromium.org/2339323004 .
Patch from Jaydeep Patil <jaydeep.patil@imgtec.com>.
Showing
Please
register
or
sign in
to comment