Export (0) Print
Expand All
Expand Minimize

dadd (sm5 - asm)

Component-wise double-precision add.

dadd[_sat] dest[.mask], [-]src0[_abs][.swizzle], [-]src1[_abs][.swizzle]

 

ItemDescription

dest

[in] The address of the result of the operation.

src0

[in] The components to add with src1.

src1

[in] The components to add with src0

 

Remarks

The valid swizzles for the source parameters are .xyzw, .xyxy, .zwxy, .zwzw. The valid dest masks are .xy, .zw, and .xyzw. The following mappings are post-swizzle:

  • dest is a double vec2 across (x 32LSB, y 32MSB) and (z 32LSB, w 32MSB).
  • src0 is a double vec2 across (x 32LSB, y 32MSB) and (z 32LSB, w 32MSB).
  • src1 is a double vec2 across (x 32LSB, y 32MSB) and (z 32LSB, w 32MSB).

The following table shows the results obtained when executing the instruction with various classes of numbers, assuming that neither overflow or underflow occurs.

F means finite-real number.

src0
src1->
-inf-F-0+0+F+infNaN
-inf-inf-inf-inf-inf-infNaNNaN
-F-inf-Fsrc0src0+-F or +-0+infNaN
-0-infsrc1-0+0src1+infNaN
+0-infsrc1+0+0src1+infNaN
+F-inf+-F or +-0src0src0+F+infNaN
+infNaN+inf+inf+inf+inf+infNaN
NaNNaNNaNNaNNaNNaNNaNNaN

 

This instruction applies to the following shader stages:

VertexHullDomainGeometryPixelCompute
XX X XXX

 

Minimum Shader Model

This instruction is supported in the following shader models:

Shader ModelSupported
Shader Model 5 yes
Shader Model 4.1 no
Shader Model 4 no
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

 

 

 

Community Additions

ADD
Show:
© 2015 Microsoft