mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
Synchronise with Khronos-private Gitlab branch
The maintenance of the conformance tests is moving to Github. This commit contains all the changes that have been done in Gitlab since the first public release of the conformance tests. Signed-off-by: Kevin Petit kevin.petit@arm.com
This commit is contained in:
41
test_conformance/spirv_new/spirv_txt/fdiv_float4.spvasm32
Normal file
41
test_conformance/spirv_new/spirv_txt/fdiv_float4.spvasm32
Normal file
@@ -0,0 +1,41 @@
|
||||
OpCapability Addresses
|
||||
OpCapability Linkage
|
||||
OpCapability Kernel
|
||||
%1 = OpExtInstImport "OpenCL.std"
|
||||
OpMemoryModel Physical32 OpenCL
|
||||
OpEntryPoint Kernel %10 "fmath_spv"
|
||||
OpName %11 "res"
|
||||
OpName %12 "lhs"
|
||||
OpName %13 "rhs"
|
||||
OpName %14 "entry"
|
||||
OpDecorate %23 FuncParamAttr NoCapture
|
||||
%23 = OpDecorationGroup
|
||||
OpDecorate %5 BuiltIn GlobalInvocationId
|
||||
OpDecorate %5 Constant
|
||||
OpDecorate %5 LinkageAttributes "__spirv_GlobalInvocationId" Import
|
||||
OpGroupDecorate %23 %11 %12 %13
|
||||
%2 = OpTypeInt 32 0
|
||||
%3 = OpTypeVector %2 3
|
||||
%4 = OpTypePointer UniformConstant %3
|
||||
%6 = OpTypeVoid
|
||||
%7 = OpTypeFloat 32
|
||||
%74 = OpTypeVector %7 4
|
||||
%8 = OpTypePointer CrossWorkgroup %74
|
||||
%9 = OpTypeFunction %6 %8 %8 %8
|
||||
%5 = OpVariable %4 UniformConstant
|
||||
%10 = OpFunction %6 None %9
|
||||
%11 = OpFunctionParameter %8
|
||||
%12 = OpFunctionParameter %8
|
||||
%13 = OpFunctionParameter %8
|
||||
%14 = OpLabel
|
||||
%15 = OpLoad %3 %5 Aligned 0
|
||||
%16 = OpCompositeExtract %2 %15 0
|
||||
%17 = OpInBoundsPtrAccessChain %8 %12 %16
|
||||
%18 = OpLoad %74 %17 Aligned 16
|
||||
%19 = OpInBoundsPtrAccessChain %8 %13 %16
|
||||
%20 = OpLoad %74 %19 Aligned 16
|
||||
%21 = OpFDiv %74 %18 %20
|
||||
%22 = OpInBoundsPtrAccessChain %8 %11 %16
|
||||
OpStore %22 %21 Aligned 16
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
Reference in New Issue
Block a user