From 7763f74f8aa01fa79071a0f99f7fba9bb8908198 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Wed, 24 Feb 2016 18:10:17 +0000 Subject: [PATCH] AArch64: remove CRC feature from Cyclone. Turns out we don't actually support those instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261759 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AArch64/AArch64.td | 1 - test/MC/AArch64/cyclone-crc.s | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 test/MC/AArch64/cyclone-crc.s diff --git a/lib/Target/AArch64/AArch64.td b/lib/Target/AArch64/AArch64.td index 2130d1e395e..22255847ada 100644 --- a/lib/Target/AArch64/AArch64.td +++ b/lib/Target/AArch64/AArch64.td @@ -122,7 +122,6 @@ def ProcCyclone : SubtargetFeature<"cyclone", "ARMProcFamily", "Cyclone", [FeatureFPARMv8, FeatureNEON, FeatureCrypto, - FeatureCRC, FeaturePerfMon, FeatureZCRegMove, FeatureZCZeroing]>; diff --git a/test/MC/AArch64/cyclone-crc.s b/test/MC/AArch64/cyclone-crc.s new file mode 100644 index 00000000000..5786df51dde --- /dev/null +++ b/test/MC/AArch64/cyclone-crc.s @@ -0,0 +1,27 @@ +// RUN: not llvm-mc -triple arm64-apple-ios -mcpu=cyclone %s 2>&1 | FileCheck %s + + crc32b w0, w1, w5 + crc32h w3, w5, w6 + crc32w w19, wzr, w20 + crc32x w3, w5, x20 +CHECK: error: instruction requires: crc +CHECK: crc32b w0, w1, w5 +CHECK: error: instruction requires: crc +CHECK: crc32h w3, w5, w6 +CHECK: error: instruction requires: crc +CHECK: crc32w w19, wzr, w20 +CHECK: error: instruction requires: crc +CHECK: crc32x w3, w5, x20 + + crc32cb w5, w10, w15 + crc32ch w3, w5, w7 + crc32cw w11, w13, w17 + crc32cx w19, w23, x29 +CHECK: error: instruction requires: crc +CHECK: crc32cb w5, w10, w15 +CHECK: error: instruction requires: crc +CHECK: crc32ch w3, w5, w7 +CHECK: error: instruction requires: crc +CHECK: crc32cw w11, w13, w17 +CHECK: error: instruction requires: crc +CHECK: crc32cx w19, w23, x29