Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/OpNot.spvasm

raw
1 ; REQUIRES: spirv-as
2 ; RUN: spirv-as --target-env spv1.0 -o %t.spv %s
3 ; RUN: spirv-val %t.spv
4 ; RUN: llvm-spirv -r -emit-opaque-pointers -o - %t.spv | llvm-dis | FileCheck %s
5 OpCapability Addresses
6 OpCapability Kernel
7 OpMemoryModel Physical32 OpenCL
8 OpEntryPoint Kernel %1 "testNot"
9 OpName %a "a"
10 %void = OpTypeVoid
11 %uint = OpTypeInt 32 0
12 %5 = OpTypeFunction %void %uint
13 %1 = OpFunction %void None %5
14 %a = OpFunctionParameter %uint
15 %6 = OpLabel
16 %7 = OpNot %uint %a
17 OpReturn
18 OpFunctionEnd
19
20 ; CHECK: xor i32 {{%a, -1|-1, %a}}