1 ; RUN: llc -march=amdgcn -mcpu=gfx600 -verify-machineinstrs < %s | FileCheck --check-prefix=GCN %s
2 ; RUN: llc -march=amdgcn -mcpu=gfx700 -verify-machineinstrs < %s | FileCheck --check-prefix=GCN %s
3 ; RUN: llc -march=amdgcn -mcpu=gfx801 -verify-machineinstrs < %s | FileCheck --check-prefix=GCN %s
4 ; RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck --check-prefix=GCN %s
6 ; GCN-LABEL: {{^}}scalar_nand_i32_one_use
8 define amdgpu_kernel void @scalar_nand_i32_one_use(
9 i32 addrspace(1)* %r0, i32 %a, i32 %b) {
12 %r0.val = xor i32 %and, -1
13 store i32 %r0.val, i32 addrspace(1)* %r0
17 ; GCN-LABEL: {{^}}scalar_nand_i32_mul_use
22 define amdgpu_kernel void @scalar_nand_i32_mul_use(
23 i32 addrspace(1)* %r0, i32 addrspace(1)* %r1, i32 %a, i32 %b) {
26 %r0.val = xor i32 %and, -1
27 %r1.val = add i32 %and, %a
28 store i32 %r0.val, i32 addrspace(1)* %r0
29 store i32 %r1.val, i32 addrspace(1)* %r1
33 ; GCN-LABEL: {{^}}scalar_nand_i64_one_use
35 define amdgpu_kernel void @scalar_nand_i64_one_use(
36 i64 addrspace(1)* %r0, i64 %a, i64 %b) {
39 %r0.val = xor i64 %and, -1
40 store i64 %r0.val, i64 addrspace(1)* %r0
44 ; GCN-LABEL: {{^}}scalar_nand_i64_mul_use
50 define amdgpu_kernel void @scalar_nand_i64_mul_use(
51 i64 addrspace(1)* %r0, i64 addrspace(1)* %r1, i64 %a, i64 %b) {
54 %r0.val = xor i64 %and, -1
55 %r1.val = add i64 %and, %a
56 store i64 %r0.val, i64 addrspace(1)* %r0
57 store i64 %r1.val, i64 addrspace(1)* %r1
61 ; GCN-LABEL: {{^}}vector_nand_i32_one_use
65 define i32 @vector_nand_i32_one_use(i32 %a, i32 %b) {
72 ; GCN-LABEL: {{^}}vector_nand_i64_one_use
78 define i64 @vector_nand_i64_one_use(i64 %a, i64 %b) {