From: Nikodemus S. <de...@us...> - 2009-05-17 12:44:26
|
Update of /cvsroot/sbcl/sbcl/tests In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30812/tests Modified Files: compiler.pure.lisp Log Message: 1.0.28.53: enable dumping of specialized complexes in the cross-compiler * No reason to disable it that I can see, and if it is disabled the cross-compiler will dump slightly bogus objects for complex single and double floats -- using the generic complex widetag. Noticed while trying to initialize arrays using the SAETP-DEFAULT-INITIAL-ELEMENT. Index: compiler.pure.lisp =================================================================== RCS file: /cvsroot/sbcl/sbcl/tests/compiler.pure.lisp,v retrieving revision 1.194 retrieving revision 1.195 diff -u -d -r1.194 -r1.195 --- compiler.pure.lisp 11 May 2009 15:44:11 -0000 1.194 +++ compiler.pure.lisp 17 May 2009 12:44:17 -0000 1.195 @@ -2896,3 +2896,13 @@ (assert (= 1 n)) (compile nil `(lambda (x) (the 'fixnum x))) (assert (= 2 n))))) + +(with-test (:name :complex-subtype-dumping-in-xc) + (assert + (= sb-vm:complex-single-float-widetag + (sb-kernel:widetag-of + (sb-vm:saetp-initial-element-default (sb-c::find-saetp '(complex single-float)))))) + (assert + (= sb-vm:complex-double-float-widetag + (sb-kernel:widetag-of + (sb-vm:saetp-initial-element-default (sb-c::find-saetp '(complex double-float))))))) |