@@ -79,6 +79,7 @@ test-testd = 1.23456
7979 1040.0 1050.0 1060.0 1070.0
8080 2080.0 2090.0
8181 206 207 )))
82+ (when (not (memq :ppc *features* ))
8283 (when (not (and (memq :word-size=32 *features* ) (memq :arm *features* )))
8384 (assert (eps= 1.23456 ret))
8485 )
@@ -133,6 +134,7 @@ test-testd = 1.23456
133134 (assert-read-line-string= f " 206 207" )
134135 )
135136 )
137+ )
136138
137139(deftest test-int-test
138140 (format t " ~%~% int-test~% " )
@@ -214,6 +216,7 @@ test-testd = 1.23456
214216 (float3-test 0 0.1 0.2 0.3 0.4 )
215217
216218 ; ;
219+ (when (not (memq :ppc *features* ))
217220 (check-func ' float-test)
218221 (setq f (piped-fork (format nil " eusg ~A /test/test-foreign.module_l '(progn (float-test 0 0.1 0.2 0.3 0.4)(exit 0))'" *eusdir* )))
219222 (assert-read-line-eps= f 0.1 )
@@ -229,6 +232,7 @@ test-testd = 1.23456
229232 (assert-read-line-eps= f 0.3 )
230233 (assert-read-line-eps= f 0.4 ))
231234 )
235+ )
232236
233237#- (or :s390x :riscv64 :loongarch64 )
234238(deftest test-double-test
@@ -252,15 +256,15 @@ test-testd = 1.23456
252256 (double3-test 1 0.1 0.2 0.3 0.4 )
253257
254258 ; ;
255- (when (not (eq (read (unix ::piped-fork " gcc -dumpmachine" ) nil ' arm-linux-gnueabi) ' arm-linux-gnueabi))
259+ (when (not (or (memq :ppc *features* ) ( eq (read (unix ::piped-fork " gcc -dumpmachine" ) nil ' arm-linux-gnueabi) ' arm-linux-gnueabi) ))
256260 (check-func ' double-test)
257261 (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* )))
258262 (assert-read-line-eps= f 0.1 )
259263 (assert-read-line-eps= f 0.2 )
260264 (assert-read-line-eps= f 0.3 )
261265 (assert-read-line-eps= f 0.4 )
262266 )
263- (when (not (and (memq :word-size=32 *features* ) (memq :arm *features* )))
267+ (when (not (or (memq :ppc *features* ) ( and (memq :word-size=32 *features* ) (memq :arm *features* ) )))
264268 (check-func ' double3-test)
265269 (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* )))
266270 (assert-read-line-eps= f 0.1 )
@@ -292,6 +296,7 @@ test-testd = 1.23456
292296 (eusfloat3-test 0 0.1 0.2 0.3 0.4 )
293297
294298 ; ;
299+ (when (not (memq :ppc *features* ))
295300 (when (memq :word-size=32 *features* )
296301 (check-func ' eusfloat-test)
297302 (setq f (piped-fork (format nil " eusg ~A /test/test-foreign.module_l '(progn (eusfloat-test 0 0.1 0.2 0.3 0.4)(exit 0))'" *eusdir* )))
@@ -323,6 +328,7 @@ test-testd = 1.23456
323328 (assert-read-line-eps= f 0.4 ))
324329
325330 )
331+ )
326332
327333(deftest test-integer-vector
328334 (setq iv (integer-vector 0 100 10000 1000000 100000000 10000000000 ))
@@ -473,10 +479,12 @@ test-testd = 1.23456
473479 (format t " ~% ret-float(exec in eus)~% " )
474480 (format t " ret-float ~ 8,8 e~% " (ret-float 0.55555 133.0 ))
475481 ; ;
482+ (when (not (memq :ppc *features* ))
476483 (check-func ' ret-float)
477484 (assert-read-funcall= ' (ret-float 0.55555 133.0 ) (+ 0.55555 133.0 ))
478485 (assert (eps= (ret-float 0.55555 133.0 ) (+ 0.55555 133.0 )))
479486 )
487+ )
480488
481489#- (or :s390x :riscv64 :loongarch64 )
482490(deftest test-return-double
@@ -486,7 +494,7 @@ test-testd = 1.23456
486494 (format t " ~% ret-double(exec in eus)~% " )
487495 (format t " ret-double ~ 8,8 e~% " (ret-double 0.55555 133.0 ))
488496 ; ;
489- (when (not (and (memq :word-size=32 *features* ) (memq :arm *features* )))
497+ (when (not (or (memq :ppc *features* ) ( and (memq :word-size=32 *features* ) (memq :arm *features* ) )))
490498 (check-func ' ret-double)
491499 (assert-read-funcall= ' (ret-double 0.55555 133.0 ) (+ 0.55555 133.0 ))
492500 (assert (eps= (ret-double 0.55555 133.0 ) (+ 0.55555 133.0 )))
@@ -501,10 +509,12 @@ test-testd = 1.23456
501509 (format t " ~% ret-eusfloat(exec in eus)~% " )
502510 (format t " ret-eusfloat ~ 8,8 e~% " (ret-eusfloat 0.55555 133.0 ))
503511 ; ;
512+ (when (not (memq :ppc *features* ))
504513 (check-func ' ret-eusfloat)
505514 (assert-read-funcall= ' (ret-eusfloat 0.55555 133.0 ) (+ 0.55555 133.0 ))
506515 (assert (eps= (ret-eusfloat 0.55555 133.0 ) (+ 0.55555 133.0 )))
507516 )
517+ )
508518
509519(deftest test-return-int
510520 (format t " ~% return int test~% " )
0 commit comments