forked from OSchip/llvm-project
AMDGPU/SI: Update ISA version numbers for Tonga and Polaris10/11.
Differential Revision: http://reviews.llvm.org/D25454 Reviewers: tstellarAMD llvm-svn: 283893
This commit is contained in:
parent
79f3333d3f
commit
98317d20f4
|
@ -122,6 +122,7 @@ def FeatureISAVersion7_0_0 : SubtargetFeatureISAVersion <7,0,0>;
|
|||
def FeatureISAVersion7_0_1 : SubtargetFeatureISAVersion <7,0,1>;
|
||||
def FeatureISAVersion8_0_0 : SubtargetFeatureISAVersion <8,0,0>;
|
||||
def FeatureISAVersion8_0_1 : SubtargetFeatureISAVersion <8,0,1>;
|
||||
def FeatureISAVersion8_0_2 : SubtargetFeatureISAVersion <8,0,2>;
|
||||
def FeatureISAVersion8_0_3 : SubtargetFeatureISAVersion <8,0,3>;
|
||||
|
||||
class SubtargetFeatureLocalMemorySize <int Value> : SubtargetFeature<
|
||||
|
|
|
@ -53,6 +53,7 @@ public:
|
|||
ISAVersion7_0_1,
|
||||
ISAVersion8_0_0,
|
||||
ISAVersion8_0_1,
|
||||
ISAVersion8_0_2,
|
||||
ISAVersion8_0_3
|
||||
};
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ def : ProcessorModel<"mullins", SIQuarterSpeedModel,
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
def : ProcessorModel<"tonga", SIQuarterSpeedModel,
|
||||
[FeatureVolcanicIslands, FeatureSGPRInitBug, FeatureISAVersion8_0_0,
|
||||
[FeatureVolcanicIslands, FeatureSGPRInitBug, FeatureISAVersion8_0_2,
|
||||
FeatureLDSBankCount32]
|
||||
>;
|
||||
|
||||
|
@ -147,9 +147,9 @@ def : ProcessorModel<"stoney", SIQuarterSpeedModel,
|
|||
>;
|
||||
|
||||
def : ProcessorModel<"polaris10", SIQuarterSpeedModel,
|
||||
[FeatureVolcanicIslands, FeatureISAVersion8_0_1, FeatureLDSBankCount32]
|
||||
[FeatureVolcanicIslands, FeatureISAVersion8_0_3, FeatureLDSBankCount32]
|
||||
>;
|
||||
|
||||
def : ProcessorModel<"polaris11", SIQuarterSpeedModel,
|
||||
[FeatureVolcanicIslands, FeatureISAVersion8_0_1, FeatureLDSBankCount32]
|
||||
[FeatureVolcanicIslands, FeatureISAVersion8_0_3, FeatureLDSBankCount32]
|
||||
>;
|
||||
|
|
|
@ -50,6 +50,9 @@ IsaVersion getIsaVersion(const FeatureBitset &Features) {
|
|||
if (Features.test(FeatureISAVersion8_0_1))
|
||||
return {8, 0, 1};
|
||||
|
||||
if (Features.test(FeatureISAVersion8_0_2))
|
||||
return {8, 0, 2};
|
||||
|
||||
if (Features.test(FeatureISAVersion8_0_3))
|
||||
return {8, 0, 3};
|
||||
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA --check-prefix=HSA-CI %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo | FileCheck --check-prefix=HSA --check-prefix=HSA-VI %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=fiji | FileCheck --check-prefix=HSA --check-prefix=HSA-FIJI %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo | FileCheck --check-prefix=HSA --check-prefix=HSA-VI801 %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=tonga | FileCheck --check-prefix=HSA --check-prefix=HSA-VI802 %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=fiji | FileCheck --check-prefix=HSA --check-prefix=HSA-VI803 %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=polaris10 | FileCheck --check-prefix=HSA --check-prefix=HSA-VI803 %s
|
||||
; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=polaris11 | FileCheck --check-prefix=HSA --check-prefix=HSA-VI803 %s
|
||||
|
||||
; HSA: .hsa_code_object_version 2,1
|
||||
; HSA-CI: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
|
||||
; HSA-VI: .hsa_code_object_isa 8,0,1,"AMD","AMDGPU"
|
||||
; HSA-FIJI: .hsa_code_object_isa 8,0,3,"AMD","AMDGPU"
|
||||
; HSA-VI801: .hsa_code_object_isa 8,0,1,"AMD","AMDGPU"
|
||||
; HSA-VI802: .hsa_code_object_isa 8,0,2,"AMD","AMDGPU"
|
||||
; HSA-VI803: .hsa_code_object_isa 8,0,3,"AMD","AMDGPU"
|
||||
|
|
Loading…
Reference in New Issue