1; RUN: llc -march=amdgcn -mcpu=fiji -show-mc-encoding < %s | FileCheck -check-prefix=VI %s 2 3declare void @llvm.amdgcn.s.dcache.wb.vol() #0 4declare void @llvm.amdgcn.s.waitcnt(i32) #0 5 6; VI-LABEL: {{^}}test_s_dcache_wb_vol: 7; VI-NEXT: ; %bb.0: 8; VI-NEXT: s_dcache_wb_vol ; encoding: [0x00,0x00,0x8c,0xc0,0x00,0x00,0x00,0x00] 9; VI-NEXT: s_endpgm 10define amdgpu_kernel void @test_s_dcache_wb_vol() #0 { 11 call void @llvm.amdgcn.s.dcache.wb.vol() 12 ret void 13} 14 15; VI-LABEL: {{^}}test_s_dcache_wb_vol_insert_wait: 16; VI-NEXT: ; %bb.0: 17; VI-NEXT: s_dcache_wb_vol 18; VI: s_waitcnt lgkmcnt(0) ; encoding 19define 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) 22 br label %end 23 24end: 25 store volatile i32 3, i32 addrspace(1)* undef 26 ret void 27} 28 29attributes #0 = { nounwind } 30