You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate a sequence of instructions for divisions on Arm targets
Division instruction doesn't exist in ARMv7-A, but the current implementation
of shecc still generates it to compute the result for division or modulo
operations.
Thus, here adjusts arm-codegen so that shecc will generate a sequence of
instructions to achieve signed integer division without relying on any division
instruction.
Additionally, extend test/driver.sh to test the divisions and add a new command
line option '+m' to determine whether generating hardware multiplication and
division instructions for the executable compiled by shecc:
$ shecc [-o output] [+m] [--no-libc] [--dump-ir] <infile.c>
Finally, the allocated size for 'SOURCE', used to store all bytes of the source
files, has been enlarged to prevent access to invalid memory regions.
0 commit comments