[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)
commit3102a012582cdc95b9a4ca1685e1428a75a077d4
tree5beb7a2da722ba47f5abb27a1fc6cde7651587ff
parent14824b1c52b07b10ba6a9545f7f50bd72673b69c
[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

llvm-svn: 268047
clang/include/clang/Basic/arm_neon.td
clang/test/Sema/arm-no-fp16.c [new file with mode: 0644]