annotate llvm/test/CodeGen/AMDGPU/llvm.amdgcn.workitem.id.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 0572611fdcc8
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa -mattr=-code-object-v3 -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefix=ALL -check-prefix=CO-V2 -check-prefix=CI-HSA %s
anatofuz
parents:
diff changeset
2 ; RUN: llc -march=amdgcn -mtriple=amdgcn-unknown-amdhsa -mattr=-code-object-v3 -mcpu=carrizo -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=ALL -check-prefix=CO-V2 -check-prefix=VI-HSA %s
anatofuz
parents:
diff changeset
3 ; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -check-prefix=ALL -check-prefix=MESA -check-prefix=SI-MESA %s
anatofuz
parents:
diff changeset
4 ; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=ALL -check-prefix=MESA -check-prefix=VI-MESA %s
anatofuz
parents:
diff changeset
5 ; RUN: llc -mtriple=amdgcn-unknown-mesa3d -mattr=-code-object-v3 -mcpu=tahiti -verify-machineinstrs < %s | FileCheck -check-prefixes=ALL,CO-V2,SI-MESA %s
anatofuz
parents:
diff changeset
6 ; RUN: llc -mtriple=amdgcn-unknown-mesa3d -mattr=-code-object-v3 -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefixes=ALL,CO-V2,VI-MESA %s
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 declare i32 @llvm.amdgcn.workitem.id.x() #0
anatofuz
parents:
diff changeset
9 declare i32 @llvm.amdgcn.workitem.id.y() #0
anatofuz
parents:
diff changeset
10 declare i32 @llvm.amdgcn.workitem.id.z() #0
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 ; MESA: .section .AMDGPU.config
anatofuz
parents:
diff changeset
13 ; MESA: .long 47180
anatofuz
parents:
diff changeset
14 ; MESA-NEXT: .long 132{{$}}
anatofuz
parents:
diff changeset
15
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 ; ALL-LABEL: {{^}}test_workitem_id_x:
150
anatofuz
parents:
diff changeset
17 ; CO-V2: enable_vgpr_workitem_id = 0
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 ; ALL-NOT: v0
anatofuz
parents:
diff changeset
20 ; ALL: {{buffer|flat}}_store_dword {{.*}}v0
anatofuz
parents:
diff changeset
21 define amdgpu_kernel void @test_workitem_id_x(i32 addrspace(1)* %out) #1 {
anatofuz
parents:
diff changeset
22 %id = call i32 @llvm.amdgcn.workitem.id.x()
anatofuz
parents:
diff changeset
23 store i32 %id, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
24 ret void
anatofuz
parents:
diff changeset
25 }
anatofuz
parents:
diff changeset
26
anatofuz
parents:
diff changeset
27 ; MESA: .section .AMDGPU.config
anatofuz
parents:
diff changeset
28 ; MESA: .long 47180
anatofuz
parents:
diff changeset
29 ; MESA-NEXT: .long 2180{{$}}
anatofuz
parents:
diff changeset
30
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
31 ; ALL-LABEL: {{^}}test_workitem_id_y:
150
anatofuz
parents:
diff changeset
32 ; CO-V2: enable_vgpr_workitem_id = 1
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 ; ALL-NOT: v1
anatofuz
parents:
diff changeset
35 ; ALL: {{buffer|flat}}_store_dword {{.*}}v1
anatofuz
parents:
diff changeset
36 define amdgpu_kernel void @test_workitem_id_y(i32 addrspace(1)* %out) #1 {
anatofuz
parents:
diff changeset
37 %id = call i32 @llvm.amdgcn.workitem.id.y()
anatofuz
parents:
diff changeset
38 store i32 %id, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
39 ret void
anatofuz
parents:
diff changeset
40 }
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 ; MESA: .section .AMDGPU.config
anatofuz
parents:
diff changeset
43 ; MESA: .long 47180
anatofuz
parents:
diff changeset
44 ; MESA-NEXT: .long 4228{{$}}
anatofuz
parents:
diff changeset
45
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
46 ; ALL-LABEL: {{^}}test_workitem_id_z:
150
anatofuz
parents:
diff changeset
47 ; CO-V2: enable_vgpr_workitem_id = 2
anatofuz
parents:
diff changeset
48
anatofuz
parents:
diff changeset
49 ; ALL-NOT: v2
anatofuz
parents:
diff changeset
50 ; ALL: {{buffer|flat}}_store_dword {{.*}}v2
anatofuz
parents:
diff changeset
51 define amdgpu_kernel void @test_workitem_id_z(i32 addrspace(1)* %out) #1 {
anatofuz
parents:
diff changeset
52 %id = call i32 @llvm.amdgcn.workitem.id.z()
anatofuz
parents:
diff changeset
53 store i32 %id, i32 addrspace(1)* %out
anatofuz
parents:
diff changeset
54 ret void
anatofuz
parents:
diff changeset
55 }
anatofuz
parents:
diff changeset
56
anatofuz
parents:
diff changeset
57 attributes #0 = { nounwind readnone }
anatofuz
parents:
diff changeset
58 attributes #1 = { nounwind }