brintos

brintos / llvm-project-archived public Read only

0
0
Text · 984 B · 5f0d17d Raw
36 lines · plain
1; RUN: llc -mtriple=amdgcn -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s2; RUN: llc -mtriple=amdgcn -enable-new-pm -stop-after=amdgpu-isel < %s | FileCheck -check-prefix=GCN %s3 4; GCN-LABEL: name:            scalar_not_i325; GCN: S_NOT_B326define amdgpu_kernel void @scalar_not_i32(ptr addrspace(1) %out, i32 %val) {7  %not.val = xor i32 %val, -18  store i32 %not.val, ptr addrspace(1) %out9  ret void10}11 12; GCN-LABEL: name:            scalar_not_i6413; GCN: S_NOT_B6414define amdgpu_kernel void @scalar_not_i64(ptr addrspace(1) %out, i64 %val) {15  %not.val = xor i64 %val, -116  store i64 %not.val, ptr addrspace(1) %out17  ret void18}19 20; GCN-LABEL: name:            vector_not_i3221; GCN: V_NOT_B32_e3222define i32 @vector_not_i32(i32 %val) {23  %not.val = xor i32 %val, -124  ret i32 %not.val25}26 27; GCN-LABEL: name:            vector_not_i6428; GCN: V_NOT_B32_e3229; GCN: V_NOT_B32_e3230define i64 @vector_not_i64(i64 %val) {31  %not.val = xor i64 %val, -132  ret i64 %not.val33}34 35 36