SPIRV-Tools/test/operand-class-test-coverage.csv

4.0 KiB

1Operand classExample instructionNotesexample unit testnegative-enum coverage location
2
3
4 OperandNone,UNUSEDnot in grammarnot enum
5 OperandId,manyIDtoo many to countnot enum
6 OperandOptionalId,Source, VariableOPTIONAL_IDOpSourceAcceptsOptionalFileIdnot enum
7 OperandOptionalImage,ImageFetchImageOperandsTestTEST_F(ImageOperandsTest, WrongOperand)
8 OperandVariableIds,ExtInstnot enum
9 OperandOptionalLiteral,ExecutionModeAnyExecutionModenot enum
10 OperandOptionalLiteralString,SourceOpSourceAcceptsOptionalSourceTextnot enum
11 OperandVariableLiterals,DecorateOpDecorateSimpleTestnot enum
12 OperandVariableIdLiteral,GroupMemberDecorateGroupMemberDecorate*not enum
13 OperandVariableLiteralId, // zero or more pairs of (Literal, Id)SwitchSwitch*not enum
14 OperandLiteralNumber,Source, Switch, ...Switch*not enum
15 OperandLiteralString,SourceContinuedOpSourceContinuednot enum
16 OperandSource,SourceOpSourcenot enum
17 OperandExecutionModel,EntryPointOpEntryPointTestTEST_F(OpEntryPointTest, WrongModel)
18 OperandAddressing,OpMemoryModelOpMemoryModelTestTEST_F(OpMemoryModelTest, WrongModel)
19 OperandMemory,OpMemoryModelOpMemoryModelTestTEST_F(OpMemoryModelTest, WrongModel)
20 OperandExecutionMode,OpExecutionModeOpExecutionModeTestTEST_F(OpExecutionModeTest, WrongMode)
21 OperandStorage,TypePointer, TypeForwardPointer, VariableStorageClassTestTEST_F(OpTypeForwardPointerTest, WrongClass)
22 OperandDimensionality,TypeImageDimTest/AnyDimTEST_F(DimTest, WrongDim)
23 OperandSamplerAddressingMode,ConstantSamplerSamplerAddressingModeTestTEST_F(SamplerAddressingModeTest, WrongMode)
24 OperandSamplerFilterMode,ConstantSamplerAnySamplerFilterModeTEST_F(SamplerFilterModeTest, WrongMode)
25 OperandSamplerImageFormat,TypeImageSAMPLER_IMAGE_FORMATImageFormatTestTEST_F(ImageFormatTest, WrongFormat)
26 OperandImageChannelOrder,UNUSEDreturned as result value only
27 OperandImageChannelDataType,UNUSEDreturned as result value only
28 OperandImageOperands,UNUSEDused to make a spec sectionsee OperandOptionalImage
29 OperandFPFastMath,OpDecorateCombinedFPFastMathMaskTEST_F(OpDecorateEnumTest, WrongFPFastMathMode)
30 OperandLinkageType,OpDecorateOpDecorateLinkageTestTEST_F(OpDecorateLinkageTest, WrongType)
31 OperandAccessQualifier,OpTypePipeAnyAccessQualifierTEST_F(OpTypePipeTest, WrongAccessQualifier)
32 OperandFuncParamAttr,OpDecorateTextToBinaryDecorateFuncParamAttrTEST_F(OpDecorateEnumTest, WrongFuncParamAttr)
33 OperandDecoration,OpDecorateAnyAccessQualifierTEST_F(OpTypePipeTest, WrongAccessQualifier)
34 OperandBuiltIn,OpDecorateTextToBinaryDecorateBultInTEST_F(OpDecorateEnumTest, WrongBuiltIn)
35 OperandSelect,SelectionMergeTextToBinarySelectionMergeTEST_F(OpSelectionMergeTest, WrongSelectionControl)
36 OperandLoop,LoopMergeCombinedLoopControlMaskTEST_F(OpLoopMergeTest, WrongLoopControl)
37 OperandFunction,FunctionAnySingleFunctionControlMaskTEST_F(OpFunctionControlTest, WrongFunctionControl)
38 OperandMemorySemantics,OpMemoryBarrierit's an ID, not in grammarOpMemoryBarrier*not enum
39 OperandMemoryAccess,UNUSEDshould be on opstore, but hacked in opcode.cppnot enum
40 OperandScope,MemoryBarrierit's an ID, not in grammarOpMemoryBarrier*not enum
41 OperandGroupOperation,GroupIAddGroupOperationTestTEST_F(GroupOperationTest, WrongGroupOperation)
42 OperandKernelEnqueueFlags,OpEnqueueKernelit's an ID, not in grammarshould not have onenot enum
43 OperandKernelProfilingInfo,OpCaptureEventProfilingInfoit's an ID, not in grammarshould not have onenot enum
44 OperandCapability,CapabilityOpCapabilityTestTEST_F(TextToBinaryCapability, BadInvalidCapability)