1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[AMDGPU] Fix kernel arg segment size for amdgizcl

Differential Revision: https://reviews.llvm.org/D33307

llvm-svn: 304482
This commit is contained in:
Yaxun Liu 2017-06-01 21:31:53 +00:00
parent 45fb826e0a
commit aa6bd355ef
2 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,8 @@ public:
}
bool isOpenCLEnv() const {
return TargetTriple.getEnvironment() == Triple::OpenCL;
return TargetTriple.getEnvironment() == Triple::OpenCL ||
TargetTriple.getEnvironmentName() == "amdgizcl";
}
Generation getGeneration() const {

View File

@ -2,6 +2,8 @@
; RUN: llc -mtriple=amdgcn--amdhsa-opencl -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefixes=CO-V2,HSA,ALL,HSA-OPENCL %s
; RUN: llc -mtriple=amdgcn-mesa-mesa3d -verify-machineinstrs < %s | FileCheck -check-prefixes=CO-V2,OS-MESA3D,MESA,ALL %s
; RUN: llc -mtriple=amdgcn-mesa-unknown -verify-machineinstrs < %s | FileCheck -check-prefixes=OS-UNKNOWN,MESA,ALL %s
; RUN: llc -mtriple=amdgcn--amdhsa-amdgiz -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefixes=CO-V2,HSA,ALL,HSA-NOENV %s
; RUN: llc -mtriple=amdgcn--amdhsa-amdgizcl -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefixes=CO-V2,HSA,ALL,HSA-OPENCL %s
; ALL-LABEL: {{^}}test:
; CO-V2: enable_sgpr_kernarg_segment_ptr = 1