[AArch64] Add default features for CPUs on AArch64 target.
authorKevin Qin <Kevin.Qin@arm.com>
Wed, 11 Jun 2014 01:42:16 +0000 (01:42 +0000)
committerKevin Qin <Kevin.Qin@arm.com>
Wed, 11 Jun 2014 01:42:16 +0000 (01:42 +0000)
commitafd884718962dc65ce0237d33af3073c9a16104f
tree88c697d4e6036e5a5f43e1766ddc4883fb9a4a3d
parent936d5205bbc4b11ff32cd4e43e3306ad6720c621
[AArch64] Add default features for CPUs on AArch64 target.

For ARM target, we can use CRYPTO and CRC features if we select
cortex-a57 by '-mcpu', but for AArch64 target, it doesn't work
unless adding with '-mfpu=crypto-neon-fp-armv8'. To keep consistency
between front-end and back-end and get end-users more easier to use,
we'd better add default feature for CPUs on AArch64 target as well.

llvm-svn: 210625
clang/lib/Basic/Targets.cpp
clang/test/Preprocessor/aarch64-target-features.c