1 ; RUN: llc -march=amdgcn -mcpu=fiji -show-mc-encoding < %s | FileCheck -check-prefix=VI %s
3 declare void @llvm.amdgcn.s.dcache.wb.vol() #0
4 declare void @llvm.amdgcn.s.waitcnt(i32) #0
6 ; VI-LABEL: {{^}}test_s_dcache_wb_vol:
8 ; VI-NEXT: s_dcache_wb_vol ; encoding: [0x00,0x00,0x8c,0xc0,0x00,0x00,0x00,0x00]
10 define amdgpu_kernel void @test_s_dcache_wb_vol() #0 {
11 call void @llvm.amdgcn.s.dcache.wb.vol()
15 ; VI-LABEL: {{^}}test_s_dcache_wb_vol_insert_wait:
17 ; VI-NEXT: s_dcache_wb_vol
18 ; VI: s_waitcnt lgkmcnt(0) ; encoding
19 define amdgpu_kernel void @test_s_dcache_wb_vol_insert_wait() #0 {
20 call void @llvm.amdgcn.s.dcache.wb.vol()
21 call void @llvm.amdgcn.s.waitcnt(i32 127)
25 store volatile i32 3, i32 addrspace(1)* undef
29 attributes #0 = { nounwind }