Skip to content

Commit ae332b3

Browse files
authored
Ensure each test has a unique name (followup to #2208) (#2443)
mainly by fixing typos!
1 parent 174cafc commit ae332b3

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/rp2_common/pico_double/double_aeabi_rp2040.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ regular_func double2fix_z
649649
lsrs r3, #21
650650
// adjust
651651
adds r3, r2
652-
ble 2f // adjusted input is zero or dedornmal or < 1
652+
ble 2f // adjusted input is zero or denormal or < 1
653653
lsrs r3, r3, #11
654654
bne 3f // adjusted input is > infinite
655655

@@ -933,4 +933,4 @@ double_wrapper_section log
933933
wrapper_func_d1 log
934934
shimmable_table_tail_call SF_TABLE_FLN dln_shim
935935

936-
#endif
936+
#endif

test/pico_float_test/custom_double_funcs_test.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,16 @@ int test() {
162162
test_checku(double2ufix(3.25, 2), 13, "double2ufix7");
163163
test_checku(double2ufix(3.0, -1), 1, "double2ufix8"); // not very useful
164164
test_checki(double2ufix(0.0, 16), 0, "double2ufix12");
165-
test_checki(double2ufix(-0.0, 16), 0, "double2fix13");
165+
test_checki(double2ufix(-0.0, 16), 0, "double2ufix13");
166166
test_checki(double2ufix(0.0, -16), 0, "double2ufix14");
167-
test_checki(double2ufix(-0.0, -16), 0, "double2fix15");
167+
test_checki(double2ufix(-0.0, -16), 0, "double2ufix15");
168168

169169
printf("double2fix64\n");
170170
test_checki64(double2fix64(3.5, 8), 0x380, "double2fix641");
171171
test_checki64(double2fix64(-3.5, 8), -0x380, "double2fix642");
172172
test_checki64(double2fix64(32768.0, 16), 32768ll << 16, "double2fix643");
173173
test_checki64(double2fix64(65536.0, 16), 65536ll << 16, "double2fix644");
174-
test_checki64(double2fix64(2147483648.0, 16), 2147483648ll << 16, "double2ufix644b");
174+
test_checki64(double2fix64(2147483648.0, 16), 2147483648ll << 16, "double2fix644b");
175175
test_checki64(double2fix64(65536.0 * 65536.0 * 32768.0, 16), INT64_MAX, "double2fix644c");
176176
test_checki64(double2fix64(INFINITY, 16), INT64_MAX, "double2fix645");
177177
test_checki64(double2fix64(-INFINITY, 16), INT64_MIN, "double2fix645b");
@@ -257,10 +257,10 @@ int test() {
257257
test_checku(double2ufix_z(3.24999, 2), 12, "double2ufix_z6");
258258
test_checku(double2ufix_z(3.25, 2), 13, "double2ufix_z7");
259259
test_checku(double2ufix_z(3.0, -1), 1, "double2ufix_z8"); // not very useful
260-
test_checki(double2ufix_z(0.0, 16), 0, "double2fix_z9");
261-
test_checki(double2ufix_z(-0.0, 16), 0, "double2fix_z10");
262-
test_checki(double2ufix_z(0.0, -16), 0, "double2fix_z11");
263-
test_checki(double2ufix_z(-0.0, -16), 0, "double2fix_z12");
260+
test_checki(double2ufix_z(0.0, 16), 0, "double2ufix_z9");
261+
test_checki(double2ufix_z(-0.0, 16), 0, "double2ufix_z10");
262+
test_checki(double2ufix_z(0.0, -16), 0, "double2ufix_z11");
263+
test_checki(double2ufix_z(-0.0, -16), 0, "double2ufix_z12");
264264

265265
printf("double2fix64_z\n");
266266
test_checki64(double2fix64_z(3.5, 8), 0x380, "double2fix64_z1");
@@ -269,9 +269,9 @@ int test() {
269269
test_checki64(double2fix64_z(65536.0, 16), 65536ll << 16, "double2fix64_z4");
270270
test_checki64(double2fix64_z(65536.0 * 65536.0 * 32768.0, 16), INT64_MAX, "double2fix64_z4b");
271271
test_checki64(double2fix64_z(INFINITY, 16), INT64_MAX, "double2fix64_z5");
272-
test_checki64(double2fix64_z(-INFINITY, 16), INT64_MIN, "double2fix64_z5");
273-
test_checki64(double2fix64_z(INFINITY, 16), INT64_MAX, "double2fix64_z5");
274-
test_checki64(double2fix64_z(-INFINITY, 16), INT64_MIN, "double2fix64_z5");
272+
test_checki64(double2fix64_z(-INFINITY, 16), INT64_MIN, "double2fix64_z5b");
273+
test_checki64(double2fix64_z(INFINITY, 16), INT64_MAX, "double2fix64_z5c");
274+
test_checki64(double2fix64_z(-INFINITY, 16), INT64_MIN, "double2fix64_z5d");
275275
test_checki64(double2fix64_z(3.24999, 2), 12, "double2fix64_z6");
276276
test_checki64(double2fix64_z(3.25, 2), 13, "double2fix64_z7");
277277
test_checki64(double2fix64_z(-3.24999, 2), -12, "double2fix64_z8");
@@ -308,7 +308,7 @@ int test() {
308308
test_checku64(double2ufix64_z(-3.5, 8), 0, "double2ufix64_z2");
309309
test_checku64(double2ufix64_z(32768.0, 16), 32768ll << 16, "double2ufix64_z3");
310310
test_checku64(double2ufix64_z(65536.0, 16), 65536ll << 16, "double2ufix64_z4");
311-
test_checki64(double2ufix64_z(65536.0 * 65536.0 * 65536.0, 16), UINT64_MAX, "double2fix64_z4b");
311+
test_checki64(double2ufix64_z(65536.0 * 65536.0 * 65536.0, 16), UINT64_MAX, "double2ufix64_z4b");
312312
test_checku64(double2ufix64_z(INFINITY, 16), UINT64_MAX, "double2ufix64_z5");
313313
test_checku64(double2ufix64_z(-INFINITY, 16), 0, "double2ufix64_z5b");
314314
test_checku64(double2ufix64_z(INFINITY, 16), UINT64_MAX, "double2ufix64_z5c");

test/pico_float_test/custom_float_funcs_test.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int test() {
179179
test_checki64(float2fix64(-3.5f, 8), -0x380, "float2fix642");
180180
test_checki64(float2fix64(32768.0f, 16), 32768ll << 16, "float2fix643");
181181
test_checki64(float2fix64(65536.0f, 16), 65536ll << 16, "float2fix644");
182-
test_checki64(float2fix64(2147483648.0f, 16), 2147483648ll << 16, "float2ufix644b");
182+
test_checki64(float2fix64(2147483648.0f, 16), 2147483648ll << 16, "float2fix644b");
183183
test_checki64(float2fix64(65536.0f * 65536.0f * 32768.0f, 16), INT64_MAX, "float2fix644c");
184184
test_checki64(float2fix64(INFINITY, 16), INT64_MAX, "float2fix645");
185185
test_checki64(float2fix64(3.24999f, 2), 12, "float2fix646");
@@ -227,9 +227,9 @@ int test() {
227227
test_checku(float2ufix_z(3.25f, 2), 13, "float2ufix_z7");
228228
test_checku(float2ufix_z(3.0f, -1), 1, "float2ufix_z8"); // not very useful
229229
u32f.u = 0x7f012345;
230-
test_checku(float2ufix_z(u32f.f, 1), UINT32_MAX, "float2fix_z9");
230+
test_checku(float2ufix_z(u32f.f, 1), UINT32_MAX, "float2ufix_z9");
231231
u32f.u = 0xff012345;
232-
test_checku(float2ufix_z(u32f.f, 1), 0, "float2fix_z10");
232+
test_checku(float2ufix_z(u32f.f, 1), 0, "float2ufix_z10");
233233

234234
printf("float2fix64_z\n");
235235
test_checki64(float2fix64_z(3.5f, 8), 0x380, "float2fix64_z1");
@@ -249,7 +249,7 @@ int test() {
249249
test_checku64(float2ufix64_z(-3.5f, 8), 0, "float2ufix64_z2");
250250
test_checku64(float2ufix64_z(32768.0f, 16), 32768ll << 16, "float2ufix64_z3");
251251
test_checku64(float2ufix64_z(65536.0f, 16), 65536ll << 16, "float2ufix64_z4");
252-
test_checki64(float2ufix64_z(65536.0f * 65536.0f * 65536.0f, 16), UINT64_MAX, "float2fix64_z4b");
252+
test_checki64(float2ufix64_z(65536.0f * 65536.0f * 65536.0f, 16), UINT64_MAX, "float2ufix64_z4b");
253253
test_checku64(float2ufix64_z(INFINITY, 16), UINT64_MAX, "float2ufix64_z5");
254254
test_checku64(float2ufix64_z(3.24999f, 2), 12, "float2ufix64_z6");
255255
test_checku64(float2ufix64_z(3.25f, 2), 13, "float2ufix64_z7");

0 commit comments

Comments
 (0)