\ #ident "%Z%%M% %I% %E% SMI" \ purpose: \ copyright: Copyright 2005 Sun Microsystems, Inc. All rights reserved. \ copyright: Use is subject to license terms. \ copyright: \ copyright: CDDL HEADER START \ copyright: \ copyright: The contents of this file are subject to the terms of the \ copyright: Common Development and Distribution License, Version 1.0 only \ copyright: (the "License"). You may not use this file except in compliance \ copyright: with the License. \ copyright: \ copyright: You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE \ copyright: or http://www.opensolaris.org/os/licensing. \ copyright: See the License for the specific language governing permissions \ copyright: and limitations under the License. \ copyright: \ copyright: When distributing Covered Code, include this CDDL HEADER in each \ copyright: file and include the License file at usr/src/OPENSOLARIS.LICENSE. \ copyright: If applicable, add the following below this CDDL HEADER, with the \ copyright: fields enclosed by brackets "[]" replaced with your own identifying \ copyright: information: Portions Copyright [yyyy] [name of copyright owner] \ copyright: \ copyright: CDDL HEADER END \ copyright: fcode-version1 ." 64-bit Fcode operation tests" cr : .failed ." failed!" ; : .passed ." OK" ; : .chkstk depth if ." Stack Changed: " .s cr then ; : .passed? ( str,len flag ) if if then if then .passed space else cr type space .failed cr then ; \ comparisons only 32-bit... : xl= ( xv lh ll -- flag ) swap rot xlsplit rot = -rot = and ; : x= ( xv1 xv2 -- flag ) xlsplit rot xlsplit rot = -rot = and ; create test-64 h# 01020304 l, h# 05060708 l, h# 81121314 l, h# 85161718 l, h# ffffffff l, h# 80000000 l, ." 64-bit access tests: " " /x.1" /x 8 = .passed? " xa1+.1" test-64 xa1+ test-64 /x + = .passed? " xa+.1" test-64 2 xa+ test-64 /x 2 * + = .passed? " x@.1" test-64 x@ h# 01020304 h# 05060708 xl= .passed? " x@.2" test-64 xa1+ x@ h# 81121314 h# 85161718 xl= .passed? " .passed? " 64comp.4" 0 2 lxjoin 0= .passed? " 64comp.5" 1 2 lxjoin 0> .passed? cr end0