mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
0da0753352
- Implemented amdgpu-flat-work-group-size attribute - Implemented amdgpu-num-active-waves-per-eu attribute - Implemented amdgpu-num-sgpr attribute - Implemented amdgpu-num-vgpr attribute - Dynamic LDS constraints are in a separate patch Patch by Tom Stellard and Konstantin Zhuravlyov Differential Revision: https://reviews.llvm.org/D21562 llvm-svn: 280747
18 lines
684 B
LLVM
18 lines
684 B
LLVM
; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=fiji -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: {{^}}max_18_sgprs:
|
|
; CHECK: SGPRBlocks: 1
|
|
; CHECK: NumSGPRsForWavesPerEU: 13
|
|
define void @max_18_sgprs(i32 addrspace(1)* %out1,
|
|
i32 addrspace(1)* %out2,
|
|
i32 addrspace(1)* %out3,
|
|
i32 addrspace(1)* %out4,
|
|
i32 %one, i32 %two, i32 %three, i32 %four) #0 {
|
|
store i32 %one, i32 addrspace(1)* %out1
|
|
store i32 %two, i32 addrspace(1)* %out2
|
|
store i32 %three, i32 addrspace(1)* %out3
|
|
store i32 %four, i32 addrspace(1)* %out4
|
|
ret void
|
|
}
|
|
attributes #0 = {"amdgpu-num-sgpr"="18"}
|