brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 114d4c3 Raw
30 lines · plain
1; RUN: llc  -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck %s -check-prefix=GCN2 3; GCN-LABEL: ; %bb.0:4; GCN: s_load_dword s{{[0-9]+}}, s[[[ADDR_LO:[0-9]+]]{{\:}}[[ADDR_HI:[0-9]+]]], 0x05; GCN: s_waitcnt lgkmcnt(0)6; GCN: global_store_dword v7 8define amdgpu_kernel void @zot(ptr addrspace(1) nocapture %arg, ptr addrspace(1) nocapture %arg1) {9bb:10  %tmp = call i32 @llvm.amdgcn.workitem.id.x()11  %tmp2 = icmp eq i32 %tmp, 012  br i1 %tmp2, label %bb3, label %bb813 14bb3:                                              ; preds = %bb15  %tmp4 = load i32, ptr addrspace(1) %arg, align 416  store i32 0, ptr addrspace(1) %arg, align 417  %tmp5 = zext i32 %tmp4 to i6418  %tmp6 = load i64, ptr addrspace(1) %arg1, align 819  %tmp7 = add i64 %tmp6, %tmp520  store i64 %tmp7, ptr addrspace(1) %arg1, align 821  br label %bb822 23bb8:                                              ; preds = %bb3, %bb24  ret void25}26; Function Attrs: nounwind readnone speculatable27declare i32 @llvm.amdgcn.workitem.id.x() #028 29attributes #0 = { nounwind readnone speculatable }30