brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 096709c Raw
32 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=tahiti -show-mc-encoding < %s | FileCheck -check-prefix=GCN -check-prefix=SI %s2; RUN: llc -mtriple=amdgcn -mcpu=fiji -show-mc-encoding < %s | FileCheck -check-prefix=GCN -check-prefix=VI %s3 4declare void @llvm.amdgcn.s.dcache.inv() #05declare void @llvm.amdgcn.s.waitcnt(i32) #06 7; GCN-LABEL: {{^}}test_s_dcache_inv:8; GCN-NEXT: ; %bb.0:9; SI-NEXT: s_dcache_inv ; encoding: [0x00,0x00,0xc0,0xc7]10; VI-NEXT: s_dcache_inv ; encoding: [0x00,0x00,0x80,0xc0,0x00,0x00,0x00,0x00]11; GCN-NEXT: s_endpgm12define amdgpu_kernel void @test_s_dcache_inv() #0 {13  call void @llvm.amdgcn.s.dcache.inv()14  ret void15}16 17; GCN-LABEL: {{^}}test_s_dcache_inv_insert_wait:18; GCN-NEXT: ; %bb.0:19; GCN: s_dcache_inv20; GCN: s_waitcnt lgkmcnt(0) ; encoding21define amdgpu_kernel void @test_s_dcache_inv_insert_wait() #0 {22  call void @llvm.amdgcn.s.dcache.inv()23  call void @llvm.amdgcn.s.waitcnt(i32 127)24  br label %end25 26end:27  store volatile i32 3, ptr addrspace(1) poison28  ret void29}30 31attributes #0 = { nounwind }32