1 ; RUN: llc -march=amdgcn -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s
2 ; RUN: llc -march=amdgcn -mcpu=gfx906 -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN_DL %s
4 ; GCN-LABEL: name: uniform_xnor_i64
6 define amdgpu_kernel void @uniform_xnor_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {
8 %res = xor i64 %xor, -1
9 store i64 %res, ptr addrspace(1) %out
12 ; GCN-LABEL: name: divergent_xnor_i64
17 ; GCN_DL: V_XNOR_B32_e64
18 ; GCN_DL: V_XNOR_B32_e64
19 define i64 @divergent_xnor_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {
21 %res = xor i64 %xor, -1
25 ; GCN-LABEL: name: uniform_xnor_i32
27 define amdgpu_kernel void @uniform_xnor_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {
29 %res = xor i32 %xor, -1
30 store i32 %res, ptr addrspace(1) %out
34 ; GCN-LABEL: name: divergent_xnor_i32
37 ; GCN_DL: V_XNOR_B32_e64
38 define i32 @divergent_xnor_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {
40 %res = xor i32 %xor, -1
44 declare i32 @llvm.amdgcn.workitem.id.x() #0