Displaying 1 result from an estimated 1 matches for "divrem_".
Did you mean:
divrem
2013 Jun 21
3
[LLVMdev] ExpandDivRemLibCall vs. AEABI
...working on bug 16387:
"clang doesn't produce ARM EABI-compliant modulo runtime function"
http://llvm.org/bugs/show_bug.cgi?id=16387
And I need some pointers.
I've changed ARMISelLowering::ARMTargetLowering::ARMTargetLowering() to
associate __aeabi_idivmod variants to RTLIB::{U,S}DIVREM_* library calls,
but now I need to teach the expansion that on AEABI case, the remainder is
not on the stack, but on registers.
However, SelectionDAGLegalize::ExpandDivRemLibCall() assumes the remainder
is *always* on the stack, as is the case for GNU:
// Remainder is loaded back from the stack...