summaryrefslogtreecommitdiff
path: root/liboil/liboiltest.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2005-12-15 01:47:46 +0000
committerEric Anholt <anholt@FreeBSD.org>2005-12-15 01:47:46 +0000
commitcc689019c9bd5e48844bf0725ee290bdd37286e7 (patch)
tree402c154391339f1ca94e642730df65164b901cba /liboil/liboiltest.h
parent32ae70d8a51cd1d6d471d8fa9fc58d0dc21ecb72 (diff)
downloadliboil-cc689019c9bd5e48844bf0725ee290bdd37286e7.tar.gz
Check in files missed in last commit:
Make the guard header/footer size configurable at test runtime. Use this to make a test of implementation invariance with respect to the alignment of arguments (offsetting arguments by 0 to 3 times the size of their type). The align test also varies the length of arguments, to catch issues with fixups at the end of unrolled loops. Note that its tests of the results are stricter than oil's internal tests, resulting in some failures due to accuracy, that should probably be examined. Remove scalarmult_f32_sse which is hopelessly broken (and when fixed, is much slower than ref).
Diffstat (limited to 'liboil/liboiltest.h')
-rw-r--r--liboil/liboiltest.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/liboil/liboiltest.h b/liboil/liboiltest.h
index 24eb457..ca561aa 100644
--- a/liboil/liboiltest.h
+++ b/liboil/liboiltest.h
@@ -72,13 +72,13 @@ struct _OilTest {
/**
* OIL_TEST_HEADER:
*
- * Number of bytes that are prepended to the array test area.
+ * Default number of bytes that are prepended to the array test area.
*/
#define OIL_TEST_HEADER 256
/**
* OIL_TEST_FOOTER:
*
- * Number of bytes that are appended to the array test area.
+ * Default number of bytes that are appended to the array test area.
*/
#define OIL_TEST_FOOTER 256
@@ -93,6 +93,9 @@ int oil_test_check_impl (OilTest *test, OilFunctionImpl *impl);
void oil_test_cleanup (OilTest *test);
void oil_test_init (OilTest *test);
+void oil_test_set_test_header (OilTest *test, OilParameter *p, int test_header);
+void oil_test_set_test_footer (OilTest *test, OilParameter *p, int test_footer);
+
void _oil_test_marshal_function (void *func, unsigned long *args, int n_args,
unsigned int pointer_mask, OilProfile *prof);