HomePhabricator

[cmake] [ARM] Check if VFP is supported before including any VFP builtins

Description

[cmake] [ARM] Check if VFP is supported before including any VFP builtins

Summary:
rL325492 disables FPU features when using soft floating point
(-mfloat-abi=soft), which is used internally when building for armv7. This
causes errors with builtins that utililize VFP instructions. With this change
we first check if VFP is enabled (by checking if the preprocessor macro
VFP_FP is defined) before including such builtins.

Reviewers: rengolin, samsonov, compnerd, smeenai, javed.absar, peter.smith

Reviewed By: peter.smith

Subscribers: peter.smith, mgorny, kristof.beyls, chrib, llvm-commits

Differential Revision: https://reviews.llvm.org/D47217

Details

Committed
azharuddMay 24 2018, 11:53 AM
Reviewer
peter.smith
Differential Revision
D47217: [cmake] [ARM] Exclude any VFP builtins if VFP is not supported
Branches
Unknown
Tags
Unknown