Skip to content

Commit 3fa0ccf

Browse files
committedSep 18, 2017
[AArch64] Add V8_2aOps feature to Cortex-A55 and 75
Add the missing hardware features the ProcA55 and ProcA75 feature. These are already enabled via the target parser, but I had missed them in the backend. Differential Revision: https://reviews.llvm.org/D37974 llvm-svn: 313535
1 parent 6c865ea commit 3fa0ccf

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed
 

‎llvm/lib/Target/AArch64/AArch64.td

+2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def ProcA53 : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53",
215215

216216
def ProcA55 : SubtargetFeature<"a55", "ARMProcFamily", "CortexA55",
217217
"Cortex-A55 ARM processors", [
218+
HasV8_2aOps,
218219
FeatureCrypto,
219220
FeatureFPARMv8,
220221
FeatureFuseAES,
@@ -262,6 +263,7 @@ def ProcA73 : SubtargetFeature<"a73", "ARMProcFamily", "CortexA73",
262263

263264
def ProcA75 : SubtargetFeature<"a75", "ARMProcFamily", "CortexA75",
264265
"Cortex-A75 ARM processors", [
266+
HasV8_2aOps,
265267
FeatureCrypto,
266268
FeatureFPARMv8,
267269
FeatureFuseAES,

‎llvm/test/MC/AArch64/armv8.1a-lse.s

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.1a,+lse -show-encoding < %s 2> %t | FileCheck %s
2+
// RUN: FileCheck -check-prefix=CHECK-ERROR < %t %s
3+
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mcpu=cortex-a55 -show-encoding < %s 2> %t | FileCheck %s
4+
// RUN: FileCheck -check-prefix=CHECK-ERROR < %t %s
5+
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mcpu=cortex-a75 -show-encoding < %s 2> %t | FileCheck %s
26
// RUN: FileCheck -check-prefix=CHECK-ERROR < %t %s
37
.text
48

‎llvm/test/MC/AArch64/crc.s

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
// RUN: llvm-mc -triple aarch64-- -mattr=+crc %s 2>&1 |\
22
// RUN: FileCheck %s --check-prefix=CRC
33

4+
// RUN: llvm-mc -triple aarch64-- -mcpu=cortex-a55 %s 2>&1 |\
5+
// RUN: FileCheck %s --check-prefix=CRC
6+
// RUN: llvm-mc -triple aarch64-- -mcpu=cortex-a75 %s 2>&1 |\
7+
// RUN: FileCheck %s --check-prefix=CRC
8+
49
// RUN: not llvm-mc -triple aarch64-- %s 2>&1 |\
510
// RUN: FileCheck %s --check-prefix=NOCRC
611
// RUN: not llvm-mc -triple aarch64-- -mcpu=cyclone %s 2>&1 |\

‎llvm/test/MC/AArch64/ras-extension.s

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+ras < %s | FileCheck %s
2+
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a55 < %s | FileCheck %s
3+
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a75 < %s | FileCheck %s
24

35
esb
46
// CHECK: esb // encoding: [0x1f,0x22,0x03,0xd5]

0 commit comments

Comments
 (0)
Please sign in to comment.