Mercurial > vec
comparison test/test_arith.h @ 15:e05c257c6a23
*: huge refactor, add many new x86 intrinsics and the like
ALSO!! now intrinsics are enabled at runtime, depending on what is
detected. altivec *should* still work but I only tested compiling
it.
the major version has been updated to 2.0 for this...
author | Paper <paper@tflc.us> |
---|---|
date | Wed, 20 Nov 2024 04:10:37 -0500 |
parents | 53197dbf4e8e |
children | 41dd962abdd1 |
comparison
equal
deleted
inserted
replaced
14:981cf0bc7f3a | 15:e05c257c6a23 |
---|---|
67 | 67 |
68 #define CREATE_TESTS(bits, size) \ | 68 #define CREATE_TESTS(bits, size) \ |
69 CREATE_TESTS_SIGN(, d, , bits, size) \ | 69 CREATE_TESTS_SIGN(, d, , bits, size) \ |
70 CREATE_TESTS_SIGN(u, u, U, bits, size) | 70 CREATE_TESTS_SIGN(u, u, U, bits, size) |
71 | 71 |
72 CREATE_TESTS(8, 8) | |
73 CREATE_TESTS(16, 4) | |
74 CREATE_TESTS(32, 2) | |
75 | |
72 CREATE_TESTS(8, 16) | 76 CREATE_TESTS(8, 16) |
77 CREATE_TESTS(16, 8) | |
78 CREATE_TESTS(32, 4) | |
79 CREATE_TESTS(64, 2) | |
80 | |
81 CREATE_TESTS(8, 32) | |
82 CREATE_TESTS(16, 16) | |
83 CREATE_TESTS(32, 8) | |
84 CREATE_TESTS(64, 4) | |
85 | |
86 CREATE_TESTS(8, 64) | |
87 CREATE_TESTS(16, 32) | |
88 CREATE_TESTS(32, 16) | |
89 CREATE_TESTS(64, 8) | |
73 | 90 |
74 #undef CREATE_TESTS_SIGN | 91 #undef CREATE_TESTS_SIGN |
75 #undef CREATE_TESTS | 92 #undef CREATE_TESTS |
76 #undef CREATE_TEST | 93 #undef CREATE_TEST |
77 | 94 |
107 | 124 |
108 #define RUN_TESTS(bits, size) \ | 125 #define RUN_TESTS(bits, size) \ |
109 RUN_TESTS_SIGN( , bits, size) \ | 126 RUN_TESTS_SIGN( , bits, size) \ |
110 RUN_TESTS_SIGN(u, bits, size) | 127 RUN_TESTS_SIGN(u, bits, size) |
111 | 128 |
129 RUN_TESTS(8, 8) | |
130 RUN_TESTS(16, 4) | |
131 RUN_TESTS(32, 2) | |
132 | |
112 RUN_TESTS(8, 16) | 133 RUN_TESTS(8, 16) |
134 RUN_TESTS(16, 8) | |
135 RUN_TESTS(32, 4) | |
136 RUN_TESTS(64, 2) | |
137 | |
138 RUN_TESTS(8, 32) | |
139 RUN_TESTS(16, 16) | |
140 RUN_TESTS(32, 8) | |
141 RUN_TESTS(64, 4) | |
142 | |
143 RUN_TESTS(8, 64) | |
144 RUN_TESTS(16, 32) | |
145 RUN_TESTS(32, 16) | |
146 RUN_TESTS(64, 8) | |
113 | 147 |
114 #undef RUN_TESTS_SIGN | 148 #undef RUN_TESTS_SIGN |
115 #undef RUN_TESTS | 149 #undef RUN_TESTS |
116 | 150 |
117 return ret; | 151 return ret; |