This is an archive of the discontinued LLVM Phabricator instance.

[ARM64/AArch64] Define the correct value for __ARM_NEON_FP
ClosedPublic

Authored by bsmith on May 2 2014, 7:49 AM.

Details

Summary

The current value used for the macro ARM_NEON_FP on ARM64/AArch64 targets is incorrect to the point of not being a valid value. The latest ACLE specifies the values for this macro are the same as those for ARM_FP, that is, an or of the following:

0x2 - half support
0x4 - single support
0x8 - double support

The only exception to this is that double support is always set for 64-bit architectures, and never set for 32-bit.

Therefore the value should be defined as 0xe, not 7 as it is currently.

Diff Detail

Event Timeline

bsmith updated this revision to Diff 9035.May 2 2014, 7:49 AM
bsmith retitled this revision from to [ARM64/AArch64] Define the correct value for __ARM_NEON_FP.
bsmith updated this object.
bsmith edited the test plan for this revision. (Show Details)
bsmith added a reviewer: t.p.northover.
bsmith set the repository for this revision to rL LLVM.
bsmith added a subscriber: Unknown Object (MLST).
t.p.northover edited edge metadata.May 2 2014, 8:20 AM

Hi Bradley,

Looks good to me.

Cheers.

Tim.

bsmith accepted this revision.May 2 2014, 8:28 AM
bsmith added a reviewer: bsmith.
This revision is now accepted and ready to land.May 2 2014, 8:28 AM
bsmith closed this revision.May 2 2014, 8:28 AM