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
5 ; VI-LABEL: {{^}}test_s_dcache_wb:
7 ; VI-NEXT: s_dcache_wb ; encoding: [0x00,0x00,0x84,0xc0,0x00,0x00,0x00,0x00]
9 define void @test_s_dcache_wb() #0 {
10 call void @llvm.amdgcn.s.dcache.wb()
14 ; VI-LABEL: {{^}}test_s_dcache_wb_insert_wait:
16 ; VI-NEXT: s_dcache_wb
17 ; VI-NEXT: s_waitcnt lgkmcnt(0) ; encoding
18 define void @test_s_dcache_wb_insert_wait() #0 {
19 call void @llvm.amdgcn.s.dcache.wb()
23 store volatile i32 3, i32 addrspace(1)* undef
27 attributes #0 = { nounwind }