From 05c711e8941b05f6c9502fe8ef482a077aca508b Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 12 Dec 2022 18:00:41 +0000 Subject: Add extra control flow ERROR_IF tests Signed-off-by: Jeremy Johnson Change-Id: I7276dc686d8d18ba44663b73e35ceca2a1cbaadf --- verif/generator/tosa_utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'verif/generator/tosa_utils.py') diff --git a/verif/generator/tosa_utils.py b/verif/generator/tosa_utils.py index d79ab3c..29ae898 100644 --- a/verif/generator/tosa_utils.py +++ b/verif/generator/tosa_utils.py @@ -142,6 +142,9 @@ def get_wrong_output_type(op_name, rng, input_dtype): DType.INT32, DType.INT48, ) + else: + # Assume all types but the input type are incorrect + incorrect_types = list(usableDTypes(excludes=(input_dtype,))) return rng.choice(a=incorrect_types) -- cgit v1.2.1