brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · e8d8b1e Raw
47 lines · plain
1; RUN: llc -mtriple=amdgcn -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN_DL %s3; RUN: llc -mtriple=amdgcn -enable-new-pm -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s4; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -enable-new-pm -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN_DL %s5 6; GCN-LABEL: name:            uniform_xnor_i647; GCN: S_XNOR_B648define amdgpu_kernel void @uniform_xnor_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {9  %xor = xor i64 %a, %b10  %res = xor i64 %xor, -111  store i64 %res, ptr addrspace(1) %out12  ret void13}14; GCN-LABEL: name:            divergent_xnor_i6415; GCN: V_XOR_B32_e6416; GCN: V_XOR_B32_e6417; GCN: V_NOT_B32_e3218; GCN: V_NOT_B32_e3219; GCN_DL: V_XNOR_B32_e6420; GCN_DL: V_XNOR_B32_e6421define i64 @divergent_xnor_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {22  %xor = xor i64 %a, %b23  %res = xor i64 %xor, -124  ret i64 %res25}26 27; GCN-LABEL: name:            uniform_xnor_i3228; GCN: S_XNOR_B3229define amdgpu_kernel void @uniform_xnor_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {30  %xor = xor i32 %a, %b31  %res = xor i32 %xor, -132  store i32 %res, ptr addrspace(1) %out33  ret void34}35 36; GCN-LABEL: name:            divergent_xnor_i3237; GCN: V_XOR_B32_e6438; GCN: V_NOT_B32_e3239; GCN_DL: V_XNOR_B32_e6440define i32 @divergent_xnor_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {41  %xor = xor i32 %a, %b42  %res = xor i32 %xor, -143  ret i32 %res44}45 46declare i32 @llvm.amdgcn.workitem.id.x() #047