This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Set __ARM_FEATURE_SIMD32 for +dsp cores
ClosedPublic

Authored by samparker on Aug 22 2018, 3:33 AM.

Details

Summary

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. So it would seem that we don't have any cores that implement one and not the other, so set this macro for cores later than V6 and that the target parser, or user, reports that the 'dsp' instructions are supported.

Diff Detail

Repository
rL LLVM

Event Timeline

samparker created this revision.Aug 22 2018, 3:33 AM
samparker edited the summary of this revision. (Show Details)Aug 22 2018, 3:47 AM
samparker edited the summary of this revision. (Show Details)
samparker updated this revision to Diff 161925.Aug 22 2018, 5:10 AM

Added test for armv8m.main+dsp.

SjoerdMeijer accepted this revision.Aug 23 2018, 8:21 AM

Looks reasonable to me.

This revision is now accepted and ready to land.Aug 23 2018, 8:21 AM
This revision was automatically updated to reflect the committed changes.