ARM: improve RTABI 4.2 conformance on Linux
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 17 Aug 2014 22:51:02 +0000 (22:51 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 17 Aug 2014 22:51:02 +0000 (22:51 +0000)
commitf15492fd7292563049ace40be9a2e0048e64b8f0
tree8e94805e79b871a256de878b713153ba8ea39030
parentc5b413060c1775c134f934d38a766a0095284ed2
ARM: improve RTABI 4.2 conformance on Linux

The set of functions defined in the RTABI was separated for no real reason.
This brings us closer to proper utilisation of the functions defined by the
RTABI.  It also sets the ground for correctly emitting function calls to AEABI
functions on all AEABI conforming platforms.

The previously existing lie on the behaviour of __ldivmod and __uldivmod is
propagated as it is beyond the scope of the change.

The changes to the test are due to the fact that we now use the divmod functions
which return both the quotient and remainder and thus we no longer need to
invoke two functions on Linux (making it closer to EABI's behaviour).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215862 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/divmod-eabi.ll