2017-10-18 04:03:21 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 < %s | FileCheck --check-prefix=CHECK %s
|
2019-05-01 13:27:20 +08:00
|
|
|
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx803 -mattr=-code-object-v3 -filetype=obj -o - < %s | llvm-readelf --notes | FileCheck --check-prefix=HSAMD %s
|
2016-09-07 04:22:28 +08:00
|
|
|
|
|
|
|
; CHECK-LABEL: {{^}}min_64_max_64:
|
|
|
|
; CHECK: SGPRBlocks: 0
|
|
|
|
; CHECK: VGPRBlocks: 0
|
|
|
|
; CHECK: NumSGPRsForWavesPerEU: 1
|
|
|
|
; CHECK: NumVGPRsForWavesPerEU: 1
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @min_64_max_64() #0 {
|
2016-09-07 04:22:28 +08:00
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
attributes #0 = {"amdgpu-flat-work-group-size"="64,64"}
|
|
|
|
|
|
|
|
; CHECK-LABEL: {{^}}min_64_max_128:
|
|
|
|
; CHECK: SGPRBlocks: 0
|
|
|
|
; CHECK: VGPRBlocks: 0
|
|
|
|
; CHECK: NumSGPRsForWavesPerEU: 1
|
|
|
|
; CHECK: NumVGPRsForWavesPerEU: 1
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @min_64_max_128() #1 {
|
2016-09-07 04:22:28 +08:00
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
attributes #1 = {"amdgpu-flat-work-group-size"="64,128"}
|
|
|
|
|
|
|
|
; CHECK-LABEL: {{^}}min_128_max_128:
|
|
|
|
; CHECK: SGPRBlocks: 0
|
|
|
|
; CHECK: VGPRBlocks: 0
|
|
|
|
; CHECK: NumSGPRsForWavesPerEU: 1
|
|
|
|
; CHECK: NumVGPRsForWavesPerEU: 1
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @min_128_max_128() #2 {
|
2016-09-07 04:22:28 +08:00
|
|
|
entry:
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
attributes #2 = {"amdgpu-flat-work-group-size"="128,128"}
|
|
|
|
|
2019-08-28 01:03:36 +08:00
|
|
|
; CHECK-LABEL: {{^}}min_1024_max_1024
|
|
|
|
; CHECK: SGPRBlocks: 0
|
|
|
|
; CHECK: VGPRBlocks: 10
|
|
|
|
; CHECK: NumSGPRsForWavesPerEU: 2{{$}}
|
|
|
|
; CHECK: NumVGPRsForWavesPerEU: 43
|
2016-09-07 04:22:28 +08:00
|
|
|
@var = addrspace(1) global float 0.0
|
2019-08-28 01:03:36 +08:00
|
|
|
define amdgpu_kernel void @min_1024_max_1024() #3 {
|
2016-09-07 04:22:28 +08:00
|
|
|
%val0 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val1 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val2 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val3 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val4 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val5 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val6 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val7 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val8 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val9 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val10 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val11 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val12 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val13 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val14 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val15 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val16 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val17 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val18 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val19 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val20 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val21 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val22 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val23 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val24 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val25 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val26 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val27 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val28 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val29 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val30 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val31 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val32 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val33 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val34 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val35 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val36 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val37 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val38 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val39 = load volatile float, float addrspace(1)* @var
|
|
|
|
%val40 = load volatile float, float addrspace(1)* @var
|
|
|
|
|
|
|
|
store volatile float %val0, float addrspace(1)* @var
|
|
|
|
store volatile float %val1, float addrspace(1)* @var
|
|
|
|
store volatile float %val2, float addrspace(1)* @var
|
|
|
|
store volatile float %val3, float addrspace(1)* @var
|
|
|
|
store volatile float %val4, float addrspace(1)* @var
|
|
|
|
store volatile float %val5, float addrspace(1)* @var
|
|
|
|
store volatile float %val6, float addrspace(1)* @var
|
|
|
|
store volatile float %val7, float addrspace(1)* @var
|
|
|
|
store volatile float %val8, float addrspace(1)* @var
|
|
|
|
store volatile float %val9, float addrspace(1)* @var
|
|
|
|
store volatile float %val10, float addrspace(1)* @var
|
|
|
|
store volatile float %val11, float addrspace(1)* @var
|
|
|
|
store volatile float %val12, float addrspace(1)* @var
|
|
|
|
store volatile float %val13, float addrspace(1)* @var
|
|
|
|
store volatile float %val14, float addrspace(1)* @var
|
|
|
|
store volatile float %val15, float addrspace(1)* @var
|
|
|
|
store volatile float %val16, float addrspace(1)* @var
|
|
|
|
store volatile float %val17, float addrspace(1)* @var
|
|
|
|
store volatile float %val18, float addrspace(1)* @var
|
|
|
|
store volatile float %val19, float addrspace(1)* @var
|
|
|
|
store volatile float %val20, float addrspace(1)* @var
|
|
|
|
store volatile float %val21, float addrspace(1)* @var
|
|
|
|
store volatile float %val22, float addrspace(1)* @var
|
|
|
|
store volatile float %val23, float addrspace(1)* @var
|
|
|
|
store volatile float %val24, float addrspace(1)* @var
|
|
|
|
store volatile float %val25, float addrspace(1)* @var
|
|
|
|
store volatile float %val26, float addrspace(1)* @var
|
|
|
|
store volatile float %val27, float addrspace(1)* @var
|
|
|
|
store volatile float %val28, float addrspace(1)* @var
|
|
|
|
store volatile float %val29, float addrspace(1)* @var
|
|
|
|
store volatile float %val30, float addrspace(1)* @var
|
|
|
|
store volatile float %val31, float addrspace(1)* @var
|
|
|
|
store volatile float %val32, float addrspace(1)* @var
|
|
|
|
store volatile float %val33, float addrspace(1)* @var
|
|
|
|
store volatile float %val34, float addrspace(1)* @var
|
|
|
|
store volatile float %val35, float addrspace(1)* @var
|
|
|
|
store volatile float %val36, float addrspace(1)* @var
|
|
|
|
store volatile float %val37, float addrspace(1)* @var
|
|
|
|
store volatile float %val38, float addrspace(1)* @var
|
|
|
|
store volatile float %val39, float addrspace(1)* @var
|
|
|
|
store volatile float %val40, float addrspace(1)* @var
|
|
|
|
|
|
|
|
ret void
|
|
|
|
}
|
2019-08-28 01:03:36 +08:00
|
|
|
attributes #3 = {"amdgpu-flat-work-group-size"="1024,1024"}
|
2017-10-18 04:03:21 +08:00
|
|
|
|
|
|
|
; HSAMD: NT_AMD_AMDGPU_HSA_METADATA (HSA Metadata)
|
|
|
|
; HSAMD: Version: [ 1, 0 ]
|
|
|
|
; HSAMD: Kernels:
|
|
|
|
; HSAMD: - Name: min_64_max_64
|
2017-10-19 01:31:09 +08:00
|
|
|
; HSAMD: MaxFlatWorkGroupSize: 64
|
2017-10-18 04:03:21 +08:00
|
|
|
; HSAMD: - Name: min_64_max_128
|
2017-10-19 01:31:09 +08:00
|
|
|
; HSAMD: MaxFlatWorkGroupSize: 128
|
2017-10-18 04:03:21 +08:00
|
|
|
; HSAMD: - Name: min_128_max_128
|
2017-10-19 01:31:09 +08:00
|
|
|
; HSAMD: MaxFlatWorkGroupSize: 128
|
2019-08-28 01:03:36 +08:00
|
|
|
; HSAMD: - Name: min_1024_max_1024
|
|
|
|
; HSAMD: MaxFlatWorkGroupSize: 1024
|