Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[Spec]: Updated bitwise shift operation specification. (#26183)

Piotr Kowalczyk8d112571ff8e
diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-left-shift-15.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-left-shift-15.rst
index e7116188685..3e47e835fcd 100644
--- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-left-shift-15.rst
+++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-left-shift-15.rst
@@ -25,7 +25,10 @@ After broadcasting input tensors *a* and *b*, *BitwiseLeftShift* performs a bitw
.. note::
If the number of shifts is negative, or if it equals or exceeds the total number of bits in the type **T**, the behavior can be undefined or implementation-defined (depends on the hardware).
+
+ Unsigned integer shift is always performed modulo 2^n where n is the number of bits in the type **T**.
+ When signed integer shift operation overflows (the result does not fit in the result type), the behavior is undefined.
**Attributes**:
diff --git a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-right-shift-15.rst b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-right-shift-15.rst
index 5ec3b3768fc..6dc3aeb23f7 100644
--- a/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-right-shift-15.rst
+++ b/docs/articles_en/documentation/openvino-ir-format/operation-sets/operation-specs/bitwise/bitwise-right-shift-15.rst
@@ -26,6 +26,9 @@ After broadcasting input tensors *a* and *b*, *BitwiseRightShift* performs a bit
If the number of shifts is negative, or if it equals or exceeds the total number of bits in the type **T**, the behavior can be undefined or implementation-defined (depends on the hardware).
+ Unsigned integer shift is always performed modulo 2^n where n is the number of bits in the type **T**.
+
+ When signed integer shift operation overflows (the result does not fit in the result type), the behavior is undefined.
**Attributes**: