Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ishl (sm4 - asm)
Collapse the table of content
Expand the table of content

ishl (sm4 - asm)

Shift left.

dest[.mask], src0[.swizzle], src1.select_component




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


[in] Contains the values to be shifted.


[in] Contains the shift amount.



This instruction performs a component-wise shift of each 32-bit value in src0 left by an unsigned integer bit count provided by the LSB 5 bits (0-31 range) in src1.select_component, inserting 0. The 32-bit per component results are placed in dest. The count is a scalar value applied to all components.

This instruction applies to the following shader stages:

Vertex ShaderGeometry ShaderPixel Shader


Minimum Shader Model

This function is supported in the following shader models.

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




Community Additions

© 2015 Microsoft