diff options
author | David Schleef <ds@schleef.org> | 2010-08-19 13:31:40 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-08-19 13:31:40 -0700 |
commit | e81f692bf3867c43099464cc67410898428f304e (patch) | |
tree | bc2dd2b32394c92314e1fdb0922ca6b7f38422fe /tools | |
parent | 1a9743a967a9ac280d8223eb891c919b2d22a5b4 (diff) |
Add perf testing of emulated code
Diffstat (limited to 'tools')
-rw-r--r-- | tools/orcc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/orcc.c b/tools/orcc.c index 97d769b..a8d087f 100644 --- a/tools/orcc.c +++ b/tools/orcc.c @@ -997,6 +997,13 @@ output_code_test (OrcProgram *p, FILE *output) } fprintf(output, "\n"); + if (compat >= ORC_VERSION(0,4,7,1)) { + fprintf(output, " if (benchmark) {\n"); + fprintf(output, " printf (\" cycles (emulate) : %%g\\n\",\n"); + fprintf(output, " orc_test_performance_full (p, ORC_TEST_FLAGS_EMULATE, NULL));\n"); + fprintf(output, " }\n"); + fprintf(output, "\n"); + } fprintf(output, " ret = orc_test_compare_output_backup (p);\n"); fprintf(output, " if (!ret) {\n"); fprintf(output, " error = TRUE;\n"); |