diff options
Diffstat (limited to 'ptx/src/test/spirv_run/div_approx.spvtxt')
-rw-r--r-- | ptx/src/test/spirv_run/div_approx.spvtxt | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/ptx/src/test/spirv_run/div_approx.spvtxt b/ptx/src/test/spirv_run/div_approx.spvtxt new file mode 100644 index 0000000..40cc152 --- /dev/null +++ b/ptx/src/test/spirv_run/div_approx.spvtxt @@ -0,0 +1,65 @@ +; SPIR-V +; Version: 1.3 +; Generator: rspirv +; Bound: 38 +OpCapability GenericPointer +OpCapability Linkage +OpCapability Addresses +OpCapability Kernel +OpCapability Int8 +OpCapability Int16 +OpCapability Int64 +OpCapability Float16 +OpCapability Float64 +; OpCapability FunctionFloatControlINTEL +; OpExtension "SPV_INTEL_float_controls2" +%30 = OpExtInstImport "OpenCL.std" +OpMemoryModel Physical64 OpenCL +OpEntryPoint Kernel %1 "div_approx" +OpDecorate %1 FunctionDenormModeINTEL 32 Preserve +OpDecorate %18 FPFastMathMode AllowRecip +%31 = OpTypeVoid +%32 = OpTypeInt 64 0 +%33 = OpTypeFunction %31 %32 %32 +%34 = OpTypePointer Function %32 +%35 = OpTypeFloat 32 +%36 = OpTypePointer Function %35 +%37 = OpTypePointer Generic %35 +%23 = OpConstant %32 4 +%1 = OpFunction %31 None %33 +%8 = OpFunctionParameter %32 +%9 = OpFunctionParameter %32 +%28 = OpLabel +%2 = OpVariable %34 Function +%3 = OpVariable %34 Function +%4 = OpVariable %34 Function +%5 = OpVariable %34 Function +%6 = OpVariable %36 Function +%7 = OpVariable %36 Function +OpStore %2 %8 +OpStore %3 %9 +%11 = OpLoad %32 %2 +%10 = OpCopyObject %32 %11 +OpStore %4 %10 +%13 = OpLoad %32 %3 +%12 = OpCopyObject %32 %13 +OpStore %5 %12 +%15 = OpLoad %32 %4 +%25 = OpConvertUToPtr %37 %15 +%14 = OpLoad %35 %25 +OpStore %6 %14 +%17 = OpLoad %32 %4 +%24 = OpIAdd %32 %17 %23 +%26 = OpConvertUToPtr %37 %24 +%16 = OpLoad %35 %26 +OpStore %7 %16 +%19 = OpLoad %35 %6 +%20 = OpLoad %35 %7 +%18 = OpFDiv %35 %19 %20 +OpStore %6 %18 +%21 = OpLoad %32 %5 +%22 = OpLoad %35 %6 +%27 = OpConvertUToPtr %37 %21 +OpStore %27 %22 +OpReturn +OpFunctionEnd
\ No newline at end of file |