aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-27 20:44:25 -0500
committerJack Lloyd <[email protected]>2017-01-29 17:32:47 -0500
commit2b848242fe4f6c7023e86d7e916c73af30fb9cf0 (patch)
treeab138d0a73230de92d123a0afce38c7e04453395 /src/tests/tests.h
parent3cf1917b4e0ab45f853f1fe7cb7faed342987dd9 (diff)
Add support for NEON in SIMD_4x32
Tested on qemu-aarch64
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r--src/tests/tests.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h
index aa5208325..ed7008c34 100644
--- a/src/tests/tests.h
+++ b/src/tests/tests.h
@@ -187,6 +187,12 @@ class Test
return test_eq(what, static_cast<size_t>(x), static_cast<size_t>(y));
}
+ template<typename I1, typename I2>
+ bool test_int_eq(const std::string& what, I1 x, I2 y)
+ {
+ return test_eq(what.c_str(), static_cast<size_t>(x), static_cast<size_t>(y));
+ }
+
bool test_lt(const std::string& what, size_t produced, size_t expected);
bool test_lte(const std::string& what, size_t produced, size_t expected);
bool test_gte(const std::string& what, size_t produced, size_t expected);