mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
[AArch64] Crypto requires FP.
So if FP is disabled, crypto should also be disabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff1254b6f8
commit
f05816007b
@ -27,7 +27,7 @@ def FeatureNEON : SubtargetFeature<"neon", "HasNEON", "true",
|
||||
"Enable Advanced SIMD instructions", [FeatureFPARMv8]>;
|
||||
|
||||
def FeatureCrypto : SubtargetFeature<"crypto", "HasCrypto", "true",
|
||||
"Enable cryptographic instructions">;
|
||||
"Enable cryptographic instructions", [FeatureNEON]>;
|
||||
|
||||
def FeatureCRC : SubtargetFeature<"crc", "HasCRC", "true",
|
||||
"Enable ARMv8 CRC-32 checksum instructions">;
|
||||
|
8
test/MC/AArch64/nofp-crypto-diagnostic.s
Normal file
8
test/MC/AArch64/nofp-crypto-diagnostic.s
Normal file
@ -0,0 +1,8 @@
|
||||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon,+crypto,-fp-armv8 < %s 2> %t
|
||||
// RUN: FileCheck --check-prefix=CHECK-ERROR < %t %s
|
||||
|
||||
sha1h s0, s1
|
||||
|
||||
// CHECK-ERROR: error: instruction requires: crypto
|
||||
// CHECK-ERROR-NEXT: sha1h s0, s1
|
||||
// CHECK-ERROR-NEXT: ^
|
Loading…
Reference in New Issue
Block a user