diff test/test_arith.h @ 17:41dd962abdd1

*: allow compiling vec in a C++ translation unit this is stupid, but whatever
author Paper <paper@tflc.us>
date Wed, 20 Nov 2024 12:02:15 -0500
parents e05c257c6a23
children e26874655738
line wrap: on
line diff
--- a/test/test_arith.h	Wed Nov 20 04:16:56 2024 -0500
+++ b/test/test_arith.h	Wed Nov 20 12:02:15 2024 -0500
@@ -69,6 +69,11 @@
 	CREATE_TESTS_SIGN(, d, , bits, size) \
 	CREATE_TESTS_SIGN(u, u, U, bits, size)
 
+CREATE_TESTS(8, 2)
+
+CREATE_TESTS(8, 4)
+CREATE_TESTS(16, 2)
+
 CREATE_TESTS(8, 8)
 CREATE_TESTS(16, 4)
 CREATE_TESTS(32, 2)
@@ -91,6 +96,7 @@
 #undef CREATE_TESTS_SIGN
 #undef CREATE_TESTS
 #undef CREATE_TEST
+#undef CREATE_TEST_SHIFT
 
 static int test_arith(void)
 {
@@ -126,6 +132,11 @@
 	RUN_TESTS_SIGN( , bits, size) \
 	RUN_TESTS_SIGN(u, bits, size)
 
+	RUN_TESTS(8, 2)
+
+	RUN_TESTS(8, 4)
+	RUN_TESTS(16, 2)
+
 	RUN_TESTS(8, 8)
 	RUN_TESTS(16, 4)
 	RUN_TESTS(32, 2)