1 ; RUN: llc -mtriple=amdgcn -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s
2 ; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN_DL %s
3 ; RUN: llc -mtriple=amdgcn -enable-new-pm -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s
4 ; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -enable-new-pm -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN_DL %s
6 ; GCN-LABEL: name: uniform_xnor_i64
8 define amdgpu_kernel void @uniform_xnor_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {
10 %res = xor i64 %xor, -1
11 store i64 %res, ptr addrspace(1) %out
14 ; GCN-LABEL: name: divergent_xnor_i64
19 ; GCN_DL: V_XNOR_B32_e64
20 ; GCN_DL: V_XNOR_B32_e64
21 define i64 @divergent_xnor_i64(ptr addrspace(1) %out, i64 %a, i64 %b) {
23 %res = xor i64 %xor, -1
27 ; GCN-LABEL: name: uniform_xnor_i32
29 define amdgpu_kernel void @uniform_xnor_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {
31 %res = xor i32 %xor, -1
32 store i32 %res, ptr addrspace(1) %out
36 ; GCN-LABEL: name: divergent_xnor_i32
39 ; GCN_DL: V_XNOR_B32_e64
40 define i32 @divergent_xnor_i32(ptr addrspace(1) %out, i32 %a, i32 %b) {
42 %res = xor i32 %xor, -1
46 declare i32 @llvm.amdgcn.workitem.id.x() #0