1 ; RUN: llc -mtriple=amdgcn -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s
2 ; RUN: llc -mtriple=amdgcn -enable-new-pm -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s
4 ; GCN-LABEL: name: scalar_not_i32
6 define amdgpu_kernel void @scalar_not_i32(ptr addrspace(1) %out, i32 %val) {
7 %not.val = xor i32 %val, -1
8 store i32 %not.val, ptr addrspace(1) %out
12 ; GCN-LABEL: name: scalar_not_i64
14 define amdgpu_kernel void @scalar_not_i64(ptr addrspace(1) %out, i64 %val) {
15 %not.val = xor i64 %val, -1
16 store i64 %not.val, ptr addrspace(1) %out
20 ; GCN-LABEL: name: vector_not_i32
22 define i32 @vector_not_i32(i32 %val) {
23 %not.val = xor i32 %val, -1
27 ; GCN-LABEL: name: vector_not_i64
30 define i64 @vector_not_i64(i64 %val) {
31 %not.val = xor i64 %val, -1