[ARM] Use correct half-precision functions in EABI mode
authorOliver Stannard <oliver.stannard@arm.com>
Wed, 7 Oct 2015 16:58:49 +0000 (16:58 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Wed, 7 Oct 2015 16:58:49 +0000 (16:58 +0000)
commit21348cfda233e9acb175f7025c123b4d30c238f9
treeeab6cbf8710e026895cffe1659b84681bf3a4b37
parentc7fc9259e6bc62223cf510db19bdc6315af48910
[ARM] Use correct half-precision functions in EABI mode

The ARM RTABI defines the half- to single-precision float conversion functions
with an __aeabi prefix, but libgcc only has them with a __gnu prefix. Therefore
we need to emit the __aeabi version when compiling with an eabi or eabihf
triple, and the __gnu version with a gnueabi or gnueabihf triple.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/fp16.ll
test/CodeGen/Thumb2/float-intrinsics-double.ll
test/CodeGen/Thumb2/float-intrinsics-float.ll