aboutsummaryrefslogtreecommitdiff
path: root/chapters/ewise_binary.adoc
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2023-05-16 09:13:50 +0100
committerKevin Petit <kevin.petit@arm.com>2023-05-18 08:44:54 +0100
commit98b3e33a5590c3ff11f156997f8f2c45d8dc48e0 (patch)
tree5b550c8cdfc9ff887187d984a64f7c6c89485145 /chapters/ewise_binary.adoc
parentd7282186957676237717fbaadc4090a5af838cb3 (diff)
downloadspecification-98b3e33a5590c3ff11f156997f8f2c45d8dc48e0.tar.gz
Replace uint6_t with int8_t
Add REQUIRE statements to constrain the range where needed. Also fix a typo. Change-Id: I281e6249d8951b4cb3ff19eaf199660bed3feac9 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Diffstat (limited to 'chapters/ewise_binary.adoc')
-rw-r--r--chapters/ewise_binary.adoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chapters/ewise_binary.adoc b/chapters/ewise_binary.adoc
index 4af347a..864cf5b 100644
--- a/chapters/ewise_binary.adoc
+++ b/chapters/ewise_binary.adoc
@@ -297,8 +297,9 @@ include::{generated}/operators/MUL.adoc[]
[source,c++]
----
+REQUIRE(0 <= shift && shift <= 63);
+REQUIRE(in_t == int32_t || shift == 0);
ERROR_IF(shape != broadcast_shape(shape1, shape2));
-ERROR_IF(in_t != int32_t && shift > 0);
for_each(index in shape) {
dim_t index1 = apply_broadcast(shape, shape1, index);
dim_t index2 = apply_broadcast(shape, shape2, index);