Implement the isnan
HLSL Function
#99132
Labels
backend:DirectX
backend:SPIR-V
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
isnan
clang builtin,isnan
clang builtin withhlsl_intrinsics.h
isnan
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
isnan
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/isnan.hlsl
clang/test/SemaHLSL/BuiltIns/isnan-errors.hlsl
int_dx_isnan
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_isnan
to8
inDXIL.td
isnan.ll
andisnan_errors.ll
tests inllvm/test/CodeGen/DirectX/
int_spv_isnan
intrinsic inIntrinsicsSPIRV.td
isnan
lowering and map it toint_spv_isnan
inSPIRVInstructionSelector::selectIntrinsic
.llvm/test/CodeGen/SPIRV/hlsl-intrinsics/isnan.ll
DirectX
SPIR-V
OpIsNan:
Description:
Result is true if x is a NaN for the floating-point encoding used
by the type of x, otherwise result is false.
Result Type must be a scalar or vector of Boolean
type.
x must be a scalar or vector of floating-point type. It
must have the same number of components as Result Type.
Results are computed per component.
4
156
<id>
Result Type
Result <id>
<id>
x
Test Case(s)
Example 1
HLSL:
Determines if the specified value is NAN or QNAN.
Parameters
Return Value
Returns a value of the same size as the input, with a value set to True if the x parameter is NAN or QNAN. Otherwise, False.
Type Description
Minimum Shader Model
This function is supported in the following shader models.
Requirements
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: