; REQUIRES: spirv-as
; RUN: spirv-as --target-env spv1.0 -o %t.spv %s
; RUN: spirv-val %t.spv
; RUN: llvm-spirv -r -o - %t.spv | llvm-dis | FileCheck %s
               OpCapability Addresses
               OpCapability Kernel
               OpMemoryModel Physical32 OpenCL
               OpEntryPoint Kernel %1 "testLogicalNot"
               OpName %a "a"
       %void = OpTypeVoid
       %bool = OpTypeBool
%_ptr_CrossWorkgroup_bool = OpTypePointer CrossWorkgroup %bool
          %7 = OpTypeFunction %void %_ptr_CrossWorkgroup_bool
          %1 = OpFunction %void None %7
          %8 = OpFunctionParameter %_ptr_CrossWorkgroup_bool
          %9 = OpLabel
          %a = OpLoad %bool %8 Aligned 8
         %10 = OpLogicalNot %bool %a
               OpReturn
               OpFunctionEnd

; CHECK: xor i1 {{%a, true|true, %a}}
