3 # Prototype bit-field swizzling for endian support
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 if [ -f $PCP_INC_DIR/config.h
]
19 defs
=$PCP_INC_DIR/config.h
20 elif [ -f $PCP_INC_DIR/platform_header.h
]
23 defs
=$PCP_INC_DIR/platform_header.h
24 elif [ -f $PCP_INC_DIR/platform_defs.h
]
27 defs
=$PCP_INC_DIR/platform_defs.h
29 _notrun
"No $PCP_INC_DIR headers found"
31 grep '#define HAVE_BITFIELDS_LTOR' $defs >/dev
/null
2>&1 || \
32 _notrun
"HAVE_BITFIELDS_LTOR is false"
34 status
=1 # failure is the default!
35 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
37 # real QA test starts here
38 echo "=== read external format ==="
39 src
/read-bf
<src
/sgi.bf
42 echo "=== write external format ==="
43 src
/write-bf
>$tmp.out
44 cmp src
/sgi.bf
$tmp.out