]> granicus.if.org Git - clang/commit
[ARM] Guard the declarations of f16 to f32 vcvt intrinsics in arm_neon.h by testing...
authorSilviu Baranga <silviu.baranga@arm.com>
Fri, 29 Apr 2016 15:03:32 +0000 (15:03 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Fri, 29 Apr 2016 15:03:32 +0000 (15:03 +0000)
commit3c235b18a837237959ae1aa1827b8ad222ecd2b8
tree225825fcd86404faa244aa814dd2ee844adafa15
parent9349dfb2b051c5e65de60b9008707468af03171a
[ARM] Guard the declarations of f16 to f32 vcvt intrinsics in arm_neon.h by testing __ARM_FP

Summary:
Conversions between float and half are only available when the
taraget has the half-precision extension. Guard these intrinsics
so that they don't cause crashes in the backend.

Fixes PR27550.

Reviewers: rengolin, t.p.northover

Subscribers: cfe-commits, aemerson, t.p.northover, rengolin

Differential Revision: http://reviews.llvm.org/D19665

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268047 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/arm_neon.td
test/Sema/arm-no-fp16.c [new file with mode: 0644]