From: Dejan Mircevski Date: Tue, 13 Oct 2015 21:35:15 +0000 (-0400) Subject: Add negative-coverage location to operand-class-test-coverage.csv. X-Git-Tag: upstream/2018.6~1511^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=497b226c68cf5feb546151f3932db50b28b3c89c;p=platform%2Fupstream%2FSPIRV-Tools.git Add negative-coverage location to operand-class-test-coverage.csv. --- diff --git a/test/operand-class-test-coverage.csv b/test/operand-class-test-coverage.csv index 2a22f8d..1028d4c 100644 --- a/test/operand-class-test-coverage.csv +++ b/test/operand-class-test-coverage.csv @@ -1,45 +1,45 @@ -Operand class,Example instruction,Notes,example unit test -,,, -,,, -" OperandNone,",UNUSED,not in grammar, -" OperandId,",many,ID,too many to count -" OperandOptionalId,","Source, Variable",OPTIONAL_ID,OpSourceAcceptsOptionalFileId -" OperandOptionalImage,",ImageFetch,,ImageOperandsTest -" OperandVariableIds,",ExtInst,, -" OperandOptionalLiteral,",ExecutionMode,,AnyExecutionMode -" OperandOptionalLiteralString,",Source,,OpSourceAcceptsOptionalSourceText -" OperandVariableLiterals,",Decorate,,OpDecorateSimpleTest -" OperandVariableIdLiteral,",GroupMemberDecorate,,GroupMemberDecorate* -" OperandVariableLiteralId, // zero or more pairs of (Literal, Id)",Switch,,Switch* -" OperandLiteralNumber,","Source, Switch, ...",,Switch* -" OperandLiteralString,",SourceContinued,,OpSourceContinued -" OperandSource,",Source,,OpSource -" OperandExecutionModel,",EntryPoint,,OpEntryPointTest -" OperandAddressing,",OpMemoryModel,,OpMemoryModelTest -" OperandMemory,",OpMemoryModel,,OpMemoryModelTest -" OperandExecutionMode,",OpExecutionMode,,OpExecutionModeTest -" OperandStorage,","TypePointer, TypeForwardPointer, Variable",,StorageClassTest -" OperandDimensionality,",TypeImage,,DimTest/AnyDim -" OperandSamplerAddressingMode,",ConstantSampler,,SamplerAddressingModeTest -" OperandSamplerFilterMode,",ConstantSampler,,AnySamplerFilterMode -" OperandSamplerImageFormat,",TypeImage,SAMPLER_IMAGE_FORMAT,ImageFormatTest -" OperandImageChannelOrder,",UNUSED,returned as result value only, -" OperandImageChannelDataType,",UNUSED,returned as result value only, -" OperandImageOperands,",UNUSED,used to make a spec section, -" OperandFPFastMath,",OpDecorate,,CombinedFPFastMathMask -" OperandFPRoundingMode,",OpDecorate,,OpDecorateEnumTest -" OperandLinkageType,",OpDecorate,,OpDecorateLinkageTest -" OperandAccessQualifier,",OpTypePipe,,AnyAccessQualifier -" OperandFuncParamAttr,",OpDecorate,,TextToBinaryDecorateFuncParamAttr -" OperandDecoration,",OpDecorate,,AnyAccessQualifier -" OperandBuiltIn,",OpDecorate,,TextToBinaryDecorateBultIn -" OperandSelect,",SelectionMerge,,TextToBinarySelectionMerge -" OperandLoop,",LoopMerge,,CombinedLoopControlMask -" OperandFunction,",Function,,AnySingleFunctionControlMask -" OperandMemorySemantics,",OpMemoryBarrier,"it's an ID, not in grammar",OpMemoryBarrier* -" OperandMemoryAccess,",UNUSED,"should be on opstore, but hacked in opcode.cpp", -" OperandScope,",MemoryBarrier,"it's an ID, not in grammar",OpMemoryBarrier* -" OperandGroupOperation,",GroupIAdd,,GroupOperationTest -" OperandKernelEnqueueFlags,",OpEnqueueKernel,"it's an ID, not in grammar",should not have one -" OperandKernelProfilingInfo,",OpCaptureEventProfilingInfo,"it's an ID, not in grammar",should not have one -" OperandCapability,",Capability,,OpCapabilityTest +Operand class,Example instruction,Notes,example unit test,negative-enum coverage location +,,,, +,,,, +" OperandNone,",UNUSED,not in grammar,,not enum +" OperandId,",many,ID,too many to count,not enum +" OperandOptionalId,","Source, Variable",OPTIONAL_ID,OpSourceAcceptsOptionalFileId,not enum +" OperandOptionalImage,",ImageFetch,,ImageOperandsTest,"TEST_F(ImageOperandsTest, WrongOperand)" +" OperandVariableIds,",ExtInst,,,not enum +" OperandOptionalLiteral,",ExecutionMode,,AnyExecutionMode,not enum +" OperandOptionalLiteralString,",Source,,OpSourceAcceptsOptionalSourceText,not enum +" OperandVariableLiterals,",Decorate,,OpDecorateSimpleTest,not enum +" OperandVariableIdLiteral,",GroupMemberDecorate,,GroupMemberDecorate*,not enum +" OperandVariableLiteralId, // zero or more pairs of (Literal, Id)",Switch,,Switch*,not enum +" OperandLiteralNumber,","Source, Switch, ...",,Switch*,not enum +" OperandLiteralString,",SourceContinued,,OpSourceContinued,not enum +" OperandSource,",Source,,OpSource,not enum +" OperandExecutionModel,",EntryPoint,,OpEntryPointTest,"TEST_F(OpEntryPointTest, WrongModel)" +" OperandAddressing,",OpMemoryModel,,OpMemoryModelTest,"TEST_F(OpMemoryModelTest, WrongModel)" +" OperandMemory,",OpMemoryModel,,OpMemoryModelTest,"TEST_F(OpMemoryModelTest, WrongModel)" +" OperandExecutionMode,",OpExecutionMode,,OpExecutionModeTest,"TEST_F(OpExecutionModeTest, WrongMode)" +" OperandStorage,","TypePointer, TypeForwardPointer, Variable",,StorageClassTest,"TEST_F(OpTypeForwardPointerTest, WrongClass)" +" OperandDimensionality,",TypeImage,,DimTest/AnyDim,"TEST_F(DimTest, WrongDim)" +" OperandSamplerAddressingMode,",ConstantSampler,,SamplerAddressingModeTest,"TEST_F(SamplerAddressingModeTest, WrongMode)" +" OperandSamplerFilterMode,",ConstantSampler,,AnySamplerFilterMode,"TEST_F(SamplerFilterModeTest, WrongMode)" +" OperandSamplerImageFormat,",TypeImage,SAMPLER_IMAGE_FORMAT,ImageFormatTest,"TEST_F(ImageFormatTest, WrongFormat)" +" OperandImageChannelOrder,",UNUSED,returned as result value only,, +" OperandImageChannelDataType,",UNUSED,returned as result value only,, +" OperandImageOperands,",UNUSED,used to make a spec section,,see OperandOptionalImage +" OperandFPFastMath,",OpDecorate,,CombinedFPFastMathMask,"TEST_F(OpDecorateEnumTest, WrongFPFastMathMode)" +" OperandFPRoundingMode,",OpDecorate,,"TEST_F(OpDecorateEnumTest, WrongFPRoundingMode)" +" OperandLinkageType,",OpDecorate,,OpDecorateLinkageTest,"TEST_F(OpDecorateLinkageTest, WrongType)" +" OperandAccessQualifier,",OpTypePipe,,AnyAccessQualifier,"TEST_F(OpTypePipeTest, WrongAccessQualifier)" +" OperandFuncParamAttr,",OpDecorate,,TextToBinaryDecorateFuncParamAttr,"TEST_F(OpDecorateEnumTest, WrongFuncParamAttr)" +" OperandDecoration,",OpDecorate,,AnyAccessQualifier,"TEST_F(OpTypePipeTest, WrongAccessQualifier)" +" OperandBuiltIn,",OpDecorate,,TextToBinaryDecorateBultIn,"TEST_F(OpDecorateEnumTest, WrongBuiltIn)" +" OperandSelect,",SelectionMerge,,TextToBinarySelectionMerge,"TEST_F(OpSelectionMergeTest, WrongSelectionControl)" +" OperandLoop,",LoopMerge,,CombinedLoopControlMask,"TEST_F(OpLoopMergeTest, WrongLoopControl)" +" OperandFunction,",Function,,AnySingleFunctionControlMask,"TEST_F(OpFunctionControlTest, WrongFunctionControl)" +" OperandMemorySemantics,",OpMemoryBarrier,"it's an ID, not in grammar",OpMemoryBarrier*,not enum +" OperandMemoryAccess,",UNUSED,"should be on opstore, but hacked in opcode.cpp",,not enum +" OperandScope,",MemoryBarrier,"it's an ID, not in grammar",OpMemoryBarrier*,not enum +" OperandGroupOperation,",GroupIAdd,,GroupOperationTest,"TEST_F(GroupOperationTest, WrongGroupOperation)" +" OperandKernelEnqueueFlags,",OpEnqueueKernel,"it's an ID, not in grammar",should not have one,not enum +" OperandKernelProfilingInfo,",OpCaptureEventProfilingInfo,"it's an ID, not in grammar",should not have one,not enum +" OperandCapability,",Capability,,OpCapabilityTest,"TEST_F(TextToBinaryCapability, BadInvalidCapability)"