brintos

brintos / llvm-project-archived public Read only

0
0
Text · 820 B · 910b9ec Raw
30 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=fiji -show-mc-encoding < %s | FileCheck -check-prefix=VI %s2 3declare void @llvm.amdgcn.s.dcache.wb() #04declare void @llvm.amdgcn.s.waitcnt(i32) #05 6; VI-LABEL: {{^}}test_s_dcache_wb:7; VI-NEXT: ; %bb.0:8; VI-NEXT: s_dcache_wb ; encoding: [0x00,0x00,0x84,0xc0,0x00,0x00,0x00,0x00]9; VI-NEXT: s_endpgm10define amdgpu_kernel void @test_s_dcache_wb() #0 {11  call void @llvm.amdgcn.s.dcache.wb()12  ret void13}14 15; VI-LABEL: {{^}}test_s_dcache_wb_insert_wait:16; VI-NEXT: ; %bb.0:17; VI: s_dcache_wb18; VI: s_waitcnt lgkmcnt(0) ; encoding19define 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)22  br label %end23 24end:25  store volatile i32 3, ptr addrspace(1) poison26  ret void27}28 29attributes #0 = { nounwind }30