1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1200 -verify-machineinstrs < %s | FileCheck %s -check-prefix=GFX12
3 ; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1200 -verify-machineinstrs < %s | FileCheck %s -check-prefix=GFX12
5 define amdgpu_ps void @test_bvhcnt() {
6 ; GFX12-LABEL: test_bvhcnt:
8 ; GFX12-NEXT: s_wait_bvhcnt 0x0
10 call void @llvm.amdgcn.s.wait.bvhcnt(i16 0)
14 define amdgpu_ps void @test_dscnt() {
15 ; GFX12-LABEL: test_dscnt:
17 ; GFX12-NEXT: s_wait_dscnt 0x0
18 ; GFX12-NEXT: s_endpgm
19 call void @llvm.amdgcn.s.wait.dscnt(i16 0)
23 define amdgpu_ps void @test_expcnt() {
24 ; GFX12-LABEL: test_expcnt:
26 ; GFX12-NEXT: s_wait_expcnt 0x0
27 ; GFX12-NEXT: s_endpgm
28 call void @llvm.amdgcn.s.wait.expcnt(i16 0)
32 define amdgpu_ps void @test_kmcnt() {
33 ; GFX12-LABEL: test_kmcnt:
35 ; GFX12-NEXT: s_wait_kmcnt 0x0
36 ; GFX12-NEXT: s_endpgm
37 call void @llvm.amdgcn.s.wait.kmcnt(i16 0)
41 define amdgpu_ps void @test_loadcnt() {
42 ; GFX12-LABEL: test_loadcnt:
44 ; GFX12-NEXT: s_wait_loadcnt 0x0
45 ; GFX12-NEXT: s_endpgm
46 call void @llvm.amdgcn.s.wait.loadcnt(i16 0)
50 define amdgpu_ps void @test_loadcnt_dscnt() {
51 ; GFX12-LABEL: test_loadcnt_dscnt:
53 ; GFX12-NEXT: s_wait_loadcnt_dscnt 0x0
54 ; GFX12-NEXT: s_endpgm
55 call void @llvm.amdgcn.s.wait.loadcnt(i16 0)
56 call void @llvm.amdgcn.s.wait.dscnt(i16 0)
60 define amdgpu_ps void @test_samplecnt() {
61 ; GFX12-LABEL: test_samplecnt:
63 ; GFX12-NEXT: s_wait_samplecnt 0x0
64 ; GFX12-NEXT: s_endpgm
65 call void @llvm.amdgcn.s.wait.samplecnt(i16 0)
69 define amdgpu_ps void @test_storecnt() {
70 ; GFX12-LABEL: test_storecnt:
72 ; GFX12-NEXT: s_wait_storecnt 0x0
73 ; GFX12-NEXT: s_endpgm
74 call void @llvm.amdgcn.s.wait.storecnt(i16 0)
78 define amdgpu_ps void @test_storecnt_dscnt() {
79 ; GFX12-LABEL: test_storecnt_dscnt:
81 ; GFX12-NEXT: s_wait_storecnt_dscnt 0x0
82 ; GFX12-NEXT: s_endpgm
83 call void @llvm.amdgcn.s.wait.storecnt(i16 0)
84 call void @llvm.amdgcn.s.wait.dscnt(i16 0)
88 declare void @llvm.amdgcn.s.wait.bvhcnt(i16)
89 declare void @llvm.amdgcn.s.wait.dscnt(i16)
90 declare void @llvm.amdgcn.s.wait.expcnt(i16)
91 declare void @llvm.amdgcn.s.wait.kmcnt(i16)
92 declare void @llvm.amdgcn.s.wait.loadcnt(i16)
93 declare void @llvm.amdgcn.s.wait.samplecnt(i16)
94 declare void @llvm.amdgcn.s.wait.storecnt(i16)