mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Add Cortex-A57 support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7220572e74
commit
0d1e2aebe6
@ -203,6 +203,12 @@ def ProcA53 : SubtargetFeature<"a53", "ARMProcFamily", "CortexA53",
|
||||
FeatureTrustZone, FeatureT2XtPk,
|
||||
FeatureCrypto]>;
|
||||
|
||||
def ProcA57 : SubtargetFeature<"a57", "ARMProcFamily", "CortexA57",
|
||||
"Cortex-A57 ARM processors",
|
||||
[FeatureMP, FeatureHWDiv, FeatureHWDivARM,
|
||||
FeatureTrustZone, FeatureT2XtPk,
|
||||
FeatureCrypto]>;
|
||||
|
||||
def ProcR5 : SubtargetFeature<"r5", "ARMProcFamily", "CortexR5",
|
||||
"Cortex-R5 ARM processors",
|
||||
[FeatureSlowFPBrcc,
|
||||
@ -326,6 +332,9 @@ def : ProcessorModel<"swift", SwiftModel,
|
||||
def : ProcNoItin<"cortex-a53", [ProcA53, HasV8Ops, FeatureAClass,
|
||||
FeatureDB, FeatureFPARMv8,
|
||||
FeatureNEON, FeatureDSPThumb2]>;
|
||||
def : ProcNoItin<"cortex-a57", [ProcA57, HasV8Ops, FeatureAClass,
|
||||
FeatureDB, FeatureFPARMv8,
|
||||
FeatureNEON, FeatureDSPThumb2]>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Register File Description
|
||||
|
@ -31,7 +31,7 @@ class TargetOptions;
|
||||
class ARMSubtarget : public ARMGenSubtargetInfo {
|
||||
protected:
|
||||
enum ARMProcFamilyEnum {
|
||||
Others, CortexA5, CortexA8, CortexA9, CortexA15, CortexR5, Swift, CortexA53
|
||||
Others, CortexA5, CortexA8, CortexA9, CortexA15, CortexR5, Swift, CortexA53, CortexA57
|
||||
};
|
||||
enum ARMProcClassEnum {
|
||||
None, AClass, RClass, MClass
|
||||
|
@ -14,6 +14,7 @@
|
||||
; RUN: llc < %s -mtriple=thumbv7m-linux-gnueabi -mcpu=cortex-m4 | FileCheck %s --check-prefix=CORTEX-M4
|
||||
; RUN: llc < %s -mtriple=armv7r-linux-gnueabi -mcpu=cortex-r5 | FileCheck %s --check-prefix=CORTEX-R5
|
||||
; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a53 | FileCheck %s --check-prefix=CORTEX-A53
|
||||
; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mcpu=cortex-a57 | FileCheck %s --check-prefix=CORTEX-A57
|
||||
; This tests that MC/asm header conversion is smooth and that build attributes are correct
|
||||
;
|
||||
|
||||
@ -147,6 +148,18 @@
|
||||
; CORTEX-A53: .eabi_attribute 25, 1
|
||||
; CORTEX-A53: .eabi_attribute 44, 2
|
||||
|
||||
; CORTEX-A57: .cpu cortex-a57
|
||||
; CORTEX-A57: .eabi_attribute 6, 14
|
||||
; CORTEX-A57: .eabi_attribute 7, 65
|
||||
; CORTEX-A57: .eabi_attribute 8, 1
|
||||
; CORTEX-A57: .eabi_attribute 9, 2
|
||||
; CORTEX-A57: .fpu crypto-neon-fp-armv8
|
||||
; CORTEX-A57: .eabi_attribute 10, 7
|
||||
; CORTEX-A57: .eabi_attribute 12, 3
|
||||
; CORTEX-A57: .eabi_attribute 24, 1
|
||||
; CORTEX-A57: .eabi_attribute 25, 1
|
||||
; CORTEX-A57: .eabi_attribute 44, 2
|
||||
|
||||
define i32 @f(i64 %z) {
|
||||
ret i32 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user