9.7.1. Integer Arithmetic Instructions
Integer arithmetic instructions operate on the integer types in register and constant immediate forms. The integer arithmetic instructions are:
addsubmulmadclmadmul24mad24saddivremabsnegminmaxpopcclzbfindfnsbrevbfebfibmskszextdp4adp2a
Pages
- 9.7.1.1. Integer Arithmetic Instructions: add — add two values, with optional saturation and packed
.u16x2/.s16x2/.u8x4/.s8x4forms. - 9.7.1.2. Integer Arithmetic Instructions: sub — subtract one value from another, with optional saturation and packed
.u8x4/.s8x4forms. - 9.7.1.3. Integer Arithmetic Instructions: mul — multiply two values, returning the high, low or full-width product.
- 9.7.1.4. Integer Arithmetic Instructions: mad — multiply two values, take the high or low half or full width, and add a third value.
- 9.7.1.5. Integer Arithmetic Instructions: clmad — carryless 64-bit multiply and add, returning the high or low 64 bits.
- 9.7.1.6. Integer Arithmetic Instructions: mul24 — multiply two 24-bit integers held in 32-bit registers.
- 9.7.1.7. Integer Arithmetic Instructions: mad24 — multiply two 24-bit integers and add a third 32-bit value.
- 9.7.1.8. Integer Arithmetic Instructions: sad — sum of absolute differences.
- 9.7.1.9. Integer Arithmetic Instructions: div — integer division.
- 9.7.1.10. Integer Arithmetic Instructions: rem — remainder of integer division.
- 9.7.1.11. Integer Arithmetic Instructions: abs — absolute value of a signed integer.
- 9.7.1.12. Integer Arithmetic Instructions: neg — arithmetic negate, including the packed
.s8x4form. - 9.7.1.13. Integer Arithmetic Instructions: min — minimum of two values, with optional
.reluand packed forms. - 9.7.1.14. Integer Arithmetic Instructions: max — maximum of two values, with optional
.reluand packed forms. - 9.7.1.15. Integer Arithmetic Instructions: popc — population count of one bits.
- 9.7.1.16. Integer Arithmetic Instructions: clz — count leading zeros.
- 9.7.1.17. Integer Arithmetic Instructions: bfind — find the most significant non-sign bit, optionally as a shift amount.
- 9.7.1.18. Integer Arithmetic Instructions: fns — find the n-th set bit from a base position.
- 9.7.1.19. Integer Arithmetic Instructions: brev — bit reversal.
- 9.7.1.20. Integer Arithmetic Instructions: bfe — bit field extract with zero or sign extension.
- 9.7.1.21. Integer Arithmetic Instructions: bfi — bit field insert.
- 9.7.1.22. Integer Arithmetic Instructions: szext — sign-extend or zero-extend an N-bit value.
- 9.7.1.23. Integer Arithmetic Instructions: bmsk — generate a 32-bit bit field mask.
- 9.7.1.24. Integer Arithmetic Instructions: dp4a — four-way byte dot product-accumulate.
- 9.7.1.25. Integer Arithmetic Instructions: dp2a — two-way 16-bit to 8-bit dot product-accumulate.