Implement the frexp
HLSL Function
#99119
Labels
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
frexp
clang builtin,frexp
clang builtin withhlsl_intrinsics.h
frexp
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
frexp
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/frexp.hlsl
clang/test/SemaHLSL/BuiltIns/frexp-errors.hlsl
int_spv_frexp
intrinsic inIntrinsicsSPIRV.td
frexp
lowering and map it toint_spv_frexp
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/frexp.ll
DirectX
There were no DXIL opcodes found for
frexp
.SPIR-V
FrexpStruct:
Description:
FrexpStruct
Same semantics as in Frexp, except that the entire result is in the
instruction’s result; there is not a pointer operand to write through.
Result Type must be an OpTypeStruct with two members. Member 0
must have the same type as the type of x. Member 0 holds the
significand. Member 1 must be a scalar or vector with integer
component type, with 32-bit component width. Member 1 holds exponent.
These two members must have the same number of components. This
structure type must be explicitly declared by the module.
52
<id>
x
Test Case(s)
Example 1
HLSL:
Returns the mantissa and exponent of the specified floating-point value.
The return value is the mantissa, and the value returned by exp parameter is the exponent.
Parameters
Return Value
The mantissa of the x parameter.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
Remarks
Requirements
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: