[ARM] Preserve fpu behaviour for '-crypto'
authorDiogo N. Sampaio <diogo.sampaio@arm.com>
Mon, 14 Oct 2019 16:29:26 +0000 (16:29 +0000)
committerDiogo N. Sampaio <diogo.sampaio@arm.com>
Mon, 14 Oct 2019 16:29:26 +0000 (16:29 +0000)
commit2cb43b45713daca087449e6f1b1aced95b895435
treeb3b6e91152fb079ca0ea696bf5b400a6ac6611bc
parent9681ea9560a00038a29ed368dfa32104b0597b26
[ARM] Preserve fpu behaviour for '-crypto'

Summary:
This patch restores the behaviour that -fpu overwrites the
architecture obtained from -march or -mcpu flags, not enforcing to
disable 'crypto' if march=armv7 and mfpu=neon-fp-armv8.
However, it does warn that 'crypto' is ignored when passing
mfpu=crypto-neon-fp-armv8.

Reviewers: peter.smith, labrinea

Reviewed By: peter.smith

Subscribers: nickdesaulniers, kristof.beyls, dmgreen, cfe-commits, krisb

Tags: #clang

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

llvm-svn: 374785
clang/lib/Driver/ToolChains/Arch/ARM.cpp
clang/test/Driver/arm-features.c