]> granicus.if.org Git - clang/commit
ARM: allow both vfma and vfms intrinsics on v7.
authorTim Northover <tnorthover@apple.com>
Tue, 2 Feb 2016 18:02:10 +0000 (18:02 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 2 Feb 2016 18:02:10 +0000 (18:02 +0000)
commit9eac6ef71a2c4f008f9dcf3241cc194a1d5cb6ff
tree447c3fe4ba10d03486c8d78493398b0249e91c2d
parentfabd9896a9d4073e22f16354ac320cf6cfd62d1b
ARM: allow both vfma and vfms intrinsics on v7.

The main purpose here is that vfma/vfms should be symmetric, and they are
supported on most v7 cores.

The new ArchGuard is suggested by ACLE but prophylactic for us. Almost all CPUs
with NEON *will* have vfma, and the few exceptions I know of (e.g. Cortex-A8)
are incorrectly modelled by Clang so can't trigger a test.

Fortunately, they're getting rarer. But if we ever do support them properly
arm_neon.h should now do the right thing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259537 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/arm_neon.td
test/Sema/arm_vfma.c [new file with mode: 0644]