[ARM][MVE] Fix a corner case of checking for MVE-I with -mfpu=none
authorMomchil Velikov <momchil.velikov@arm.com>
Tue, 11 Feb 2020 12:01:17 +0000 (12:01 +0000)
committerMomchil Velikov <momchil.velikov@arm.com>
Tue, 11 Feb 2020 12:03:41 +0000 (12:03 +0000)
commitda3f2b414ace1f24054ae9255f811b653d9cff99
tree7f1e6d7907751e85a63e064f22224a7f2e69cc19
parentb46f925d68d480246e1447f26459bdc894631a88
[ARM][MVE] Fix a corner case of checking for MVE-I with -mfpu=none

-march=armv8.1-m.main+mve.fp+nomve -mfpu=none should disable FP
registers and instructions moving to/from FP registers.

This patch fixes the case when "+mve" (added to the feature list by
"+mve.fp"), is followed by "-mve" (added by "+nomve").

Differential Revision: https://reviews.llvm.org/D72633
clang/lib/Driver/ToolChains/Arch/ARM.cpp
clang/test/Driver/arm-mfpu.c
clang/test/Preprocessor/arm-target-features.c