Files
OpenCL-CTS/test_conformance/spirv_new/spirv_txt/fmod_half.spvasm64
Kevin Petit 05a11d8e49 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
2019-03-05 16:24:34 +00:00

46 lines
1.3 KiB
Plaintext

OpCapability Addresses
OpCapability Linkage
OpCapability Kernel
OpCapability Int64
OpCapability Float16
%1 = OpExtInstImport "OpenCL.std"
OpMemoryModel Physical64 OpenCL
OpEntryPoint Kernel %10 "fmath_spv"
OpName %11 "res"
OpName %12 "lhs"
OpName %13 "rhs"
OpName %14 "entry"
OpDecorate %26 FuncParamAttr NoCapture
%26 = OpDecorationGroup
OpDecorate %5 BuiltIn GlobalInvocationId
OpDecorate %5 Constant
OpDecorate %5 LinkageAttributes "__spirv_GlobalInvocationId" Import
OpGroupDecorate %26 %11 %12 %13
%2 = OpTypeInt 64 0
%3 = OpTypeVector %2 3
%4 = OpTypePointer UniformConstant %3
%6 = OpTypeVoid
%7 = OpTypeFloat 16
%8 = OpTypePointer CrossWorkgroup %7
%9 = OpTypeFunction %6 %8 %8 %8
%17 = OpConstant %2 32
%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
%18 = OpShiftLeftLogical %2 %16 %17
%19 = OpShiftRightArithmetic %2 %18 %17
%20 = OpInBoundsPtrAccessChain %8 %12 %19
%21 = OpLoad %7 %20
%22 = OpInBoundsPtrAccessChain %8 %13 %19
%23 = OpLoad %7 %22
%24 = OpFMod %7 %21 %23
%25 = OpInBoundsPtrAccessChain %8 %11 %19
OpStore %25 %24
OpReturn
OpFunctionEnd