brintos

brintos / llvm-project-archived public Read only

0
0
Text · 701 B · a16ad92 Raw
21 lines · plain
1; RUN: llc -mtriple=r600 -mcpu=redwood < %s | FileCheck -check-prefix=EG -check-prefix=FUNC %s2; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefixes=GCN,SI -check-prefix=FUNC %s3; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefixes=GCN,VI -check-prefix=FUNC %s4 5; FUNC-LABEL: {{^}}selectcc_i64:6; EG: XOR_INT7; EG: XOR_INT8; EG: OR_INT9; EG: CNDE_INT10; EG: CNDE_INT11; SI: v_cmp_eq_u6412; VI: s_cmp_eq_u6413; GCN: s_cselect_b3214define amdgpu_kernel void @selectcc_i64(ptr addrspace(1) %out, i64 %lhs, i64 %rhs, i64 %true, i64 %false) {15entry:16  %0 = icmp eq i64 %lhs, %rhs17  %1 = select i1 %0, i64 %true, i64 %false18  store i64 %1, ptr addrspace(1) %out19  ret void20}21