Export (0) Print
Expand All
Expand Minimize

usubb (sm5 - asm)

Unsigned integer subtract with borrow.

usubb dest0[.mask], dest1[.mask], src0[.swizzle], src1[.swizzle]

 

ItemDescription

dest0

[in] Contains the LSAB results of the instruction.

dest1

[in] The corresponding component of dest0 that specifies if a borrow was produced.

src0

[in] The value from which to subtract.

src1

[in] The amount to subtract from src0.

 

Remarks

This instruction performs a component-wise unsigned subtract of 32-bit operands src1 from src0, placing the LSB part of the 32-bit result in dest0.

The corresponding component in dest1 is written with 1 if a borrow is produced, 0 otherwise.

dest1 can be NULL if the borrow is not needed.

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