[llvm] r291909 - ARM: match GCC's behaviour for builtins

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 24 09:12:14 PST 2017


Merged to the release branch in r292951 as discussed on PR30543.

On Fri, Jan 13, 2017 at 8:25 AM, Saleem Abdulrasool via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: compnerd
> Date: Fri Jan 13 10:25:33 2017
> New Revision: 291909
>
> URL: http://llvm.org/viewvc/llvm-project?rev=291909&view=rev
> Log:
> ARM: match GCC's behaviour for builtins
>
> GCC changes the CC between the user-code and the builtins based on the
> value of `-target` rather than `-mfloat-abi`.  When a HF target is used,
> the VFP variant of the AAPCS CC is used.  Otherwise, the AAPCS variant
> is used.  In all cases, the AEABI functions use the AAPCS CC.  Adjust
> the calling convention based on the target.
>
> Resolves PR30543!
>
> Added:
>     llvm/trunk/test/CodeGen/Thumb2/intrinsics-cc.ll
> Modified:
>     llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
>     llvm/trunk/lib/Target/ARM/ARMISelLowering.h
>     llvm/trunk/test/CodeGen/Thumb2/float-intrinsics-double.ll
>     llvm/trunk/test/CodeGen/Thumb2/float-intrinsics-float.ll


More information about the llvm-commits mailing list