llvm.org GIT mirror llvm / 2683a2d
AMDGPU/SI: Update ISA version numbers for Tonga and Polaris10/11. Differential Revision: http://reviews.llvm.org/D25454 Reviewers: tstellarAMD git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283893 91177308-0d34-0410-b5e6-96231b3b80d8 Changpeng Fang 3 years ago
5 changed file(s) with 16 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
121121 def FeatureISAVersion7_0_1 : SubtargetFeatureISAVersion <7,0,1>;
122122 def FeatureISAVersion8_0_0 : SubtargetFeatureISAVersion <8,0,0>;
123123 def FeatureISAVersion8_0_1 : SubtargetFeatureISAVersion <8,0,1>;
124 def FeatureISAVersion8_0_2 : SubtargetFeatureISAVersion <8,0,2>;
124125 def FeatureISAVersion8_0_3 : SubtargetFeatureISAVersion <8,0,3>;
125126
126127 class SubtargetFeatureLocalMemorySize : SubtargetFeature<
5252 ISAVersion7_0_1,
5353 ISAVersion8_0_0,
5454 ISAVersion8_0_1,
55 ISAVersion8_0_2,
5556 ISAVersion8_0_3
5657 };
5758
124124 //===----------------------------------------------------------------------===//
125125
126126 def : ProcessorModel<"tonga", SIQuarterSpeedModel,
127 [FeatureVolcanicIslands, FeatureSGPRInitBug, FeatureISAVersion8_0_0,
127 [FeatureVolcanicIslands, FeatureSGPRInitBug, FeatureISAVersion8_0_2,
128128 FeatureLDSBankCount32]
129129 >;
130130
146146 >;
147147
148148 def : ProcessorModel<"polaris10", SIQuarterSpeedModel,
149 [FeatureVolcanicIslands, FeatureISAVersion8_0_1, FeatureLDSBankCount32]
149 [FeatureVolcanicIslands, FeatureISAVersion8_0_3, FeatureLDSBankCount32]
150150 >;
151151
152152 def : ProcessorModel<"polaris11", SIQuarterSpeedModel,
153 [FeatureVolcanicIslands, FeatureISAVersion8_0_1, FeatureLDSBankCount32]
153 [FeatureVolcanicIslands, FeatureISAVersion8_0_3, FeatureLDSBankCount32]
154154 >;
4949 if (Features.test(FeatureISAVersion8_0_1))
5050 return {8, 0, 1};
5151
52 if (Features.test(FeatureISAVersion8_0_2))
53 return {8, 0, 2};
54
5255 if (Features.test(FeatureISAVersion8_0_3))
5356 return {8, 0, 3};
5457
0 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA --check-prefix=HSA-CI %s
1 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo | FileCheck --check-prefix=HSA --check-prefix=HSA-VI %s
2 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=fiji | FileCheck --check-prefix=HSA --check-prefix=HSA-FIJI %s
1 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo | FileCheck --check-prefix=HSA --check-prefix=HSA-VI801 %s
2 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=tonga | FileCheck --check-prefix=HSA --check-prefix=HSA-VI802 %s
3 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=fiji | FileCheck --check-prefix=HSA --check-prefix=HSA-VI803 %s
4 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=polaris10 | FileCheck --check-prefix=HSA --check-prefix=HSA-VI803 %s
5 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=polaris11 | FileCheck --check-prefix=HSA --check-prefix=HSA-VI803 %s
36
47 ; HSA: .hsa_code_object_version 2,1
58 ; HSA-CI: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU"
6 ; HSA-VI: .hsa_code_object_isa 8,0,1,"AMD","AMDGPU"
7 ; HSA-FIJI: .hsa_code_object_isa 8,0,3,"AMD","AMDGPU"
9 ; HSA-VI801: .hsa_code_object_isa 8,0,1,"AMD","AMDGPU"
10 ; HSA-VI802: .hsa_code_object_isa 8,0,2,"AMD","AMDGPU"
11 ; HSA-VI803: .hsa_code_object_isa 8,0,3,"AMD","AMDGPU"