27 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=verde < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefix=SI -check-prefix=FUNC %s3 4; FUNC-LABEL: {{^}}v_and_i64_br:5; SI: s_and_b646define amdgpu_kernel void @v_and_i64_br(ptr addrspace(1) %out, ptr addrspace(1) %aptr, ptr addrspace(1) %bptr) {7entry:8 %tid = call i32 @llvm.amdgcn.mbcnt.lo(i32 -1, i32 0) #09 %tmp0 = icmp eq i32 %tid, 010 br i1 %tmp0, label %if, label %endif11 12if:13 %a = load i64, ptr addrspace(1) %aptr, align 814 %b = load i64, ptr addrspace(1) %bptr, align 815 %and = and i64 %a, %b16 br label %endif17 18endif:19 %tmp1 = phi i64 [%and, %if], [0, %entry]20 store i64 %tmp1, ptr addrspace(1) %out, align 821 ret void22}23 24declare i32 @llvm.amdgcn.mbcnt.lo(i32, i32) #025 26attributes #0 = { nounwind readnone }27