Skip to content

Commit cd632eb

Browse files
committed
relax test for arm/32bit (armhf), check double as arguments
1 parent 005fc7e commit cd632eb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/test-foreign.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
206 207
7171
test-testd = 1.23456
7272
~%")
73-
(when (not (and (memq :word-size=32 *features*) (memq :arm *features*)))
7473
(format t "exec in eus~%")
7574
(format t "test-testd = ~A~%"
7675
(setq ret (test-testd 100 101 102
@@ -79,7 +78,9 @@ test-testd = 1.23456
7978
1040.0 1050.0 1060.0 1070.0
8079
2080.0 2090.0
8180
206 207)))
81+
(when (not (and (memq :word-size=32 *features*) (memq :arm *features*)))
8282
(assert (eps= 1.23456 ret))
83+
)
8384

8485
;;
8586
(check-func 'test-testd)
@@ -90,7 +91,6 @@ test-testd = 1.23456
9091
(assert-read-line-string= f "1040.000000 1050.000000 1060.000000 1070.000000")
9192
(assert-read-line-string= f "2080.000000 2090.000000")
9293
(assert-read-line-string= f "206 207")
93-
)
9494

9595
(format t "exec in eus~%")
9696
(format t "test-testf = ~A~%"
@@ -227,13 +227,13 @@ test-testd = 1.23456
227227
(double3-test 1 0.1 0.2 0.3 0.4)
228228

229229
;;
230-
(when (not (and (memq :word-size=32 *features*) (memq :arm *features*)))
231230
(check-func 'double-test)
232231
(setq f (piped-fork (format nil "eusg ~A/test/test-foreign.module_l '(progn (double-test 1 0.1 0.2 0.3 0.4)(exit 0))'" *eusdir*)))
233232
(assert-read-line-eps= f 0.1)
234233
(assert-read-line-eps= f 0.2)
235234
(assert-read-line-eps= f 0.3)
236235
(assert-read-line-eps= f 0.4)
236+
(when (not (and (memq :word-size=32 *features*) (memq :arm *features*)))
237237
(check-func 'double3-test)
238238
(setq f (piped-fork (format nil "eusg ~A/test/test-foreign.module_l '(progn (double3-test 1 0.1 0.2 0.3 0.4)(exit 0))'" *eusdir*)))
239239
(assert-read-line-eps= f 0.1)

test/test_foreign.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ float ret_float(float a, float b) {
210210

211211
double ret_double(double a, double b) {
212212
double ret = (a + b);
213-
unsigned long *ul;
214-
ul = (unsigned long *)&ret;
213+
unsigned long long *ul;
214+
ul = (unsigned long long*)&ret;
215215
printf("// %f + %f -> %f\n", a, b, ret);
216216
printf("// return %e, %lX\n", ret, *ul);
217217
return ret;

0 commit comments

Comments
 (0)