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