diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-08-09 20:17:37 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-08-09 20:17:37 +0000 |
| commit | 6063983c30cb1b789adb7957b5dd5e17d1f5e4d6 (patch) | |
| tree | c39d0db858e82bcf9a294450f4bd6fa5962a0f9b /compiler-rt/lib/builtins/floatunsisf.c | |
| parent | efb6eb26972e083c3cd4afc7d8ca1b902abacced (diff) | |
| download | bcm5719-llvm-6063983c30cb1b789adb7957b5dd5e17d1f5e4d6.tar.gz bcm5719-llvm-6063983c30cb1b789adb7957b5dd5e17d1f5e4d6.zip | |
builtins: correct __umodsi3, __udivsi3 on ARM
When building the builtins for a modern CPU (idiv support), __umodsi3 was
completely incorrect as it would behave as __udivmosi3, which takes a tertiary
parameter which is a pointer.
__udivsi3 was also incorrect, returning the remainder in r1. Although this
would not result in any crash or invalid behaviour as r1 is a caller saved
register in AAPCS, this is unnecessary. Simply perform the division ignoring
the remainder.
llvm-svn: 215295
Diffstat (limited to 'compiler-rt/lib/builtins/floatunsisf.c')
0 files changed, 0 insertions, 0 deletions

