]> granicus.if.org Git - clang/commit
[ARM] Set __ARM_FEATURE_SIMD32 for +dsp cores
authorSam Parker <sam.parker@arm.com>
Wed, 29 Aug 2018 10:39:03 +0000 (10:39 +0000)
committerSam Parker <sam.parker@arm.com>
Wed, 29 Aug 2018 10:39:03 +0000 (10:39 +0000)
commit17172e0af3a34de711f13b3e11c4b279d61acfe7
tree04010042b11841d9fada43db72e533cdcabb2565
parent7324e18b8a3bef2b3733a2aa347a1b436f2467c8
[ARM] Set __ARM_FEATURE_SIMD32 for +dsp cores

ARM_FEATURE_DSP is already set for targets with the +dsp feature. In
the backend, this target feature is also used to represent the
availability of the of the instructions that the ACLE guard through
the __ARM_FEATURE_SIMD32 macro. We don't have any cores that
implement one and not the other, so set this macro for cores later
than V6 or for Cortex-M cores that the target parser, or user, reports
that the 'dsp' instructions are supported.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340911 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/ARM.cpp
test/Preprocessor/arm-acle-6.4.c