fi
-h8s_files="ChangeLog"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping h8s stuff in $i
- fi
- fi
- done
-else
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"h8s\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
- if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- if [ -n "${verbose}" ] ; then
- echo Caching $i in .Recover...
- fi
- mv $i .Recover
- fi
- mv new $i
- fi
- done
-fi
-
for i in * ; do
if test ! -d $i && (grep sanitize $i > /dev/null) ; then
echo '***' Some mentions of Sanitize are still left in $i! 1>&2
Don't always promote L_8 to L_16.
(do_a_fix_imm): Clean up L_32 and L_24 handling.
-start-sanitize-h8s
* config/tc-h8300.c (Smode): New variable.
(h8300hmode): Turn off Hmode.
(h8300smode): New function. Turn on Smode and Hmode.
* config/tc-h8300.h (COFF_MAGIC): Handle H8/S magic number.
(Smode): Declare.
-end-sanitize-h8s
Mon Jun 17 15:50:53 1996 J.T. Conklin <jtc@rtl.cygnus.com>
* doc/as.texinfo: Reorder chapter of machine dependent options so
Do-last:
-if [ -n "${verbose}" ] ; then
- echo Processing \"h8s\"...
-fi
-
-h8s_files="tc-h8300.c tc-h8300.h"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping h8s stuff in $i
- fi
- fi
- done
-else
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"h8s\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
- if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- if [ -n "${verbose}" ] ; then
- echo Caching $i in .Recover...
- fi
- mv $i .Recover
- fi
- mv new $i
- fi
- done
-fi
-
# End of file.
void cons ();
int Hmode;
-/* start-sanitize-h8s */
int Smode;
-/* end-sanitize-h8s */
#define PSIZE (Hmode ? L_32 : L_16)
#define DMODE (L_16)
#define DSYMMODE (Hmode ? L_24 : L_16)
h8300hmode ()
{
Hmode = 1;
-/* start-sanitize-h8s */
Smode = 0;
-/* end-sanitize-h8s */
}
-/* start-sanitize-h8s */
void
h8300smode ()
{
Smode = 1;
Hmode = 1;
}
-/* end-sanitize-h8s */
void
sbranch (size)
int size;
{
{"h8300h", h8300hmode, 0},
-/* start-sanitize-h8s */
{"h8300s", h8300smode, 0},
-/* end-sanitize-h8s */
{"sbranch", sbranch, L_8},
{"lbranch", sbranch, L_16},
*reg = 0;
return 3;
}
-/* start-sanitize-h8s */
if (src[0] == 'e' && src[1] == 'x' && src[2] == 'r')
{
*mode = EXR;
*reg = 0;
return 3;
}
-/* end-sanitize-h8s */
if (src[0] == 'f' && src[1] == 'p')
{
*mode = PSIZE | REG | direction;
op->mode = E;
-/* start-sanitize-h8s */
/* Gross. Gross. ldm and stm have a format not easily handled
by get_operand. We deal with it explicitly here. */
if (src[0] == 'e' && src[1] == 'r' && isdigit(src[2])
*ptr = src + 7;
return;
}
-/* end-sanitize-h8s */
len = parse_reg (src, &op->mode, &op->reg, direction);
if (len)
return;
}
-/* start-sanitize-h8s */
else if (strncmp (src, "mach", 4) == 0
|| strncmp (src, "macl", 4) == 0)
{
*ptr = src + 4;
return;
}
-/* end-sanitize-h8s */
else
{
src = parse_exp (src, &op->exp);
&& ((op & SIZE) != (x & SIZE)))
found = 0;
}
-/* start-sanitize-h8s */
else if ((op & MACREG) != (x & MACREG))
{
found = 0;
}
-/* end-sanitize-h8s */
else if ((op & MODE) != (x & MODE))
{
found = 0;
int d;
c = *nibble_ptr++;
- d = (c & DST) != 0;
+ d = (c & (DST | SRC_IN_DST)) != 0;
if (c < 16)
{
nib |= 0x8;
}
-/* start-sanitize-h8s */
if (c & MACREG)
{
nib = 2 + operand[d].reg;
}
-/* end-sanitize-h8s */
}
nibble_count++;
*p++ = nib;
}
-/* start-sanitize-h8s */
/* Disgusting. Why, oh why didn't someone ask us for advice
on the assembler format. */
if (strcmp (this_try->name, "stm.l") == 0
asnibbles[2] = high - low;
asnibbles[7] = (this_try->name[0] == 'l') ? high : low;
}
-/* end-sanitize-h8s */
for (i = 0; i < this_try->length; i++)
{
done
fi
-if [ -n "${verbose}" ] ; then
- echo Processing \"h8s\"...
-fi
-
-h8s_files="ChangeLog"
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Keeping h8s stuff in $i
- fi
- fi
- done
-else
- for i in $h8s_files ; do
- if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
- if [ -n "${verbose}" ] ; then
- echo Removing traces of \"h8s\" from $i...
- fi
- cp $i new
- sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/d' < $i > new
- if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- if [ -n "${verbose}" ] ; then
- echo Caching $i in .Recover...
- fi
- mv $i .Recover
- fi
- mv new $i
- fi
- done
-fi
-
# End of file.
Avoid DOS file naming problems:
* gas/h8300/branch.s: Rename from branches.s.
* gas/h8300/branchh.s: Rename from branchesh.s.
-start-sanitize-h8s
* gas/h8300/branchs.s: Rename from branchess.s.
-end-sanitize-h8s
* gas/h8300/rotsh.s: Rename from rotshift.s.
* gas/h8300/rotshh.s: Rename from rotshifth.s.
-start-sanitize-h8s
* gas/h8300/rotshs.s: Rename from rotshifts.s.
-end-sanitize-h8s
* gas/h8300/h8300.exp: Corresponding changes.
Thu Jul 4 14:01:46 1996 James G. Smith <jsmith@cygnus.co.uk>
* gas/h8300/cbranchh.s: Switch into h8300h mode.
* gas/h8300/h8300.exp (H8/300H misc tests): Fix test names.
-start-sanitize-h8s
* gas/h8300/{addsubs.s,bitops1s.s,bitops2s.s}: New tests for the
H8/S.
* gas/h8300/{bitops3.s,bitops4.s,cbranchs.s,logicals.s}: Likewise.
* gas/h8300/{movbs.s,movws.s,movls.s,pushpops.s}: Likewise.
* gas/h8300/{rotshifts.s,extends.s}: Likewise.
* gas/h8300/h8300.exp: Run them.
-end-sanitize-h8s
+
Mon Jun 10 14:14:40 1996 Ian Lance Taylor <ian@cygnus.com>
* gas/all/cofftag.s, gas/all/cofftag.d: New test for COFF enum tag
Do-first:
-h8s_files="addsubs.s bitops1s.s bitops2s.s bitops3s.s bitops4s.s branchs.s cbranchs.s compares.s decimals.s divmuls.s extends.s incdecs.s logicals.s macs.s miscs.s movbs.s movls.s movws.s multiples.s pushpops.s rotshs.s"
-
-if ( echo $* | grep keep\-h8s > /dev/null ) ; then
- keep_these_too="${h8s_files} ${keep_these_too}"
-else
- lose_these_too="${h8s_files} ${lose_these_too}"
-fi
-
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
addsub.s
addsubh.s
+addsubs.s
bitops1.s
bitops1h.s
+bitops1s.s
bitops2.s
bitops2h.s
+bitops2s.s
bitops3.s
bitops3h.s
+bitops3s.s
bitops4.s
bitops4h.s
+bitops4s.s
branch.s
branchh.s
+branchs.s
cbranch.s
cbranchh.s
+cbranchs.s
cmpsi2.s
compare.s
compareh.s
+compares.s
decimal.s
decimalh.s
+decimals.s
divmul.s
divmulh.s
+divmuls.s
extendh.s
+extends.s
ffxx1.d
ffxx1.s
h8300.exp
incdec.s
incdech.s
+incdecs.s
logical.s
logicalh.s
+logicals.s
+macs.s
misc.s
misch.s
+miscs.s
mov32bug.s
movb.s
movbh.s
+movbs.s
movlh.s
+movls.s
movw.s
movwh.s
+movws.s
+multiples.s
pushpop.s
pushpoph.s
+pushpops.s
rotsh.s
rotshh.s
+rotshs.s
Things-to-lose:
if [expr $x == 4] then { pass $testname } else { fail $testname }
}
-# start-sanitize-h8s
-
proc do_h8300s_add_sub {} {
set testname "addsubs.s: h8300s add/sub tests"
set x 0
if [expr $x == 6] then { pass $testname } else { fail $testname }
}
-# end-sanitize-h8s
proc do_h8300h_mov32bug {} {
set testname "mov32bug.s: h8300h mov32bug test"
set x 0
do_h8300h_rotate_shift
do_h8300h_extend
- # start-sanitize-h8s
# Now test the h8300s instruction parser
do_h8300s_add_sub
do_h8300s_logical
do_h8300s_mac
do_h8300s_multiple
- # end-sanitize-h8s
do_h8300h_mov32bug
# Now some random tests