aboutsummaryrefslogtreecommitdiff
path: root/verif/tosa_test_gen.py
diff options
context:
space:
mode:
authorMatthew Haddon <matthew.haddon@arm.com>2021-08-23 16:43:13 +0100
committerKevin Cheng <kevin.cheng@arm.com>2021-08-31 23:16:55 +0100
commit459443c59fcfb5eb2ec3df4579cfe87f3a45db1c (patch)
treeba8101b3272e8c511a42b1307805d116d66bee85 /verif/tosa_test_gen.py
parent82ad4d628cdb2e20975d8b7b43b41bbf381b015f (diff)
downloadreference_model-459443c59fcfb5eb2ec3df4579cfe87f3a45db1c.tar.gz
Rename DIV operator to INTDIV
* In line with the TOSA spec the DIV operator has been renamed INTDIV Signed-off-by: Matthew Haddon <matthew.haddon@arm.com> Signed-off-by: Kevin Cheng <kevin.cheng@arm.com> Change-Id: I1dc6e88220ef26b24487675600b6cd1e5bb8b0f7
Diffstat (limited to 'verif/tosa_test_gen.py')
-rw-r--r--verif/tosa_test_gen.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/verif/tosa_test_gen.py b/verif/tosa_test_gen.py
index d41d6e2..0d5169c 100644
--- a/verif/tosa_test_gen.py
+++ b/verif/tosa_test_gen.py
@@ -1840,14 +1840,14 @@ class TosaTestGen:
self.buildPlaceholderTensors(shapeList[0:pCount], dtypeList[0:pCount])
)
tens.extend(self.buildConstTensors(shapeList[pCount:], dtypeList[pCount:]))
- elif op["op"] == Op.DIV:
+ elif op["op"] == Op.INTDIV:
assert (
pCount == 2 and cCount == 0
- ), "Op.Div must have 2 placeholders, 0 consts"
+ ), "Op.INTDIV must have 2 placeholders, 0 consts"
placeholders = []
- # Two invalid cases for Op.DIV:
+ # Two invalid cases for Op.INTDIV:
# 1. divisor == 0
# 2. dividend == -(1<<31) and divisor == -1
while True:
@@ -2219,8 +2219,8 @@ class TosaTestGen:
"build_fcn": (build_binary_broadcast, TosaTensorGen.tgBroadcastFuzz, None),
"types": TYPE_INT,
},
- "div": {
- "op": Op.DIV,
+ "intdiv": {
+ "op": Op.INTDIV,
"operands": (2, 0),
"build_fcn": (build_binary_broadcast, TosaTensorGen.tgBroadcastFuzz, None),
"types": [DType.INT32],