summaryrefslogtreecommitdiff
path: root/orc-test
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-08-25 16:00:58 -0700
committerDavid Schleef <ds@schleef.org>2010-08-25 16:00:58 -0700
commit06913081ee1ce5e19622cfc7fe13ae29cc1bdf8f (patch)
tree7db8d99bd0bc6a4bc4601897f94c781f55e35fb7 /orc-test
parentd4873d90d84795faed6c9dbdc628b77810544953 (diff)
Fix testing of float params
Diffstat (limited to 'orc-test')
-rw-r--r--orc-test/orctest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c
index c9b873e..f4a66dc 100644
--- a/orc-test/orctest.c
+++ b/orc-test/orctest.c
@@ -568,7 +568,11 @@ orc_test_compare_output_full (OrcProgram *program, int flags)
orc_array_set_pattern (dest_emul[i], ORC_OOB_VALUE);
misalignment++;
} else if (program->vars[i].vartype == ORC_VAR_TYPE_PARAM) {
- orc_executor_set_param (ex, i, 2);
+ if (program->vars[i].is_float_param) {
+ orc_executor_set_param_float (ex, i, 2.0);
+ } else {
+ orc_executor_set_param (ex, i, 2);
+ }
}
}