DescriptionInsert denominator zero checks for NaCl
This IR pass for ARM inserts a comparison and a branch to trap if the
denominator of a DIV or REM instruction is zero. This makes ARM fault
identically to x86 in this case.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=2833
R=eliben@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-llvm.git;a=commit;h=8c9803a
Patch Set 1 #
Total comments: 12
Patch Set 2 : Incorporate review comments and add test #
Total comments: 29
Patch Set 3 : Moved to Transforms/NaCl, added opt invocation to test #
Total comments: 2
Patch Set 4 : Add more complex control flow test. #
Messages
Total messages: 14 (0 generated)
|