No longer sanitize away h8s stuff
authorJeff Law <law@redhat.com>
Fri, 5 Jul 1996 18:39:32 +0000 (18:39 +0000)
committerJeff Law <law@redhat.com>
Fri, 5 Jul 1996 18:39:32 +0000 (18:39 +0000)
gas/.Sanitize
gas/ChangeLog
gas/config/.Sanitize
gas/config/tc-h8300.c
gas/testsuite/.Sanitize
gas/testsuite/ChangeLog
gas/testsuite/gas/h8300/.Sanitize
gas/testsuite/gas/h8300/h8300.exp

index 4df4e45c6c3ba59a3f7bf898cb25948839e88894..77cf3d00e5b37f47af0ba2d286f2948294e86cc4 100644 (file)
@@ -160,34 +160,6 @@ else
 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
index 3fd43376c15cf2e3744e82ae1229b6a41a53dd19..754e589f76597441f56376e78af41a799d3ec2e0 100644 (file)
@@ -304,7 +304,6 @@ Tue Jun 18 13:19:51 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
        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.
@@ -317,7 +316,6 @@ start-sanitize-h8s
        * 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
index 1063e19168668737ac0700d28b5c6a877af5c674..3931c520d2d7edf6e96f3088a4ac1d30a0091807 100644 (file)
@@ -150,36 +150,4 @@ Things-to-lose:
 
 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.
index 1bb869985e86d5b24b6350f3140a15c7a60e26b0..21daaa35bc11704f93cd3aeb18eb54ddc89fd448 100644 (file)
@@ -47,9 +47,7 @@ const char line_comment_chars[] = "#";
 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)
@@ -60,19 +58,15 @@ void
 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;
@@ -89,9 +83,7 @@ const pseudo_typeS md_pseudo_table[] =
 {
 
   {"h8300h", h8300hmode, 0},
-/* start-sanitize-h8s */
   {"h8300s", h8300smode, 0},
-/* end-sanitize-h8s */
   {"sbranch", sbranch, L_8},
   {"lbranch", sbranch, L_16},
 
@@ -228,14 +220,12 @@ parse_reg (src, mode, reg, direction)
       *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;
@@ -405,7 +395,6 @@ get_operand (ptr, op, dst, 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])
@@ -438,7 +427,6 @@ get_operand (ptr, op, dst, direction)
       *ptr = src + 7;
       return;
     }
-/* end-sanitize-h8s */
 
   len = parse_reg (src, &op->mode, &op->reg, direction);
   if (len)
@@ -586,7 +574,6 @@ get_operand (ptr, op, dst, direction)
 
       return;
     }
-/* start-sanitize-h8s */
   else if (strncmp (src, "mach", 4) == 0
           || strncmp (src, "macl", 4) == 0)
     {
@@ -595,7 +582,6 @@ get_operand (ptr, op, dst, direction)
       *ptr = src + 4;
       return;
     }
-/* end-sanitize-h8s */
   else
     {
       src = parse_exp (src, &op->exp);
@@ -774,12 +760,10 @@ get_specific (opcode, operands)
                       && ((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;
@@ -961,7 +945,7 @@ build_bytes (this_try, operand)
       int d;
       c = *nibble_ptr++;
 
-      d = (c & DST) != 0;
+      d = (c & (DST | SRC_IN_DST)) != 0;
 
       if (c < 16)
        {
@@ -1042,19 +1026,16 @@ build_bytes (this_try, operand)
              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
@@ -1067,7 +1048,6 @@ build_bytes (this_try, operand)
       asnibbles[2] = high - low;
       asnibbles[7] = (this_try->name[0] == 'l') ? high : low;
     }
-/* end-sanitize-h8s */
 
   for (i = 0; i < this_try->length; i++)
     {
index 319cc339df753644dcd04ac292361e44c4853584..a1efe6316f84bcfa5d4ce6d15be309240c04b93b 100644 (file)
@@ -72,36 +72,4 @@ else
        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.
index 0b1e54f0dcdda951d15d28403c7aba68c402cf69..69c9b1fe403921a54fad10d54180ac6f6da12144 100644 (file)
@@ -3,14 +3,10 @@ Thu Jul  4 14:23:36 1996  Ian Lance Taylor  <ian@cygnus.com>
        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>
@@ -38,7 +34,6 @@ Tue Jun 18 12:39:49 1996  Jeffrey A. Law  <law@rtl.cygnus.com>
        * 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.
@@ -47,7 +42,7 @@ start-sanitize-h8s
        * 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
index 288d8b5c1635311cf6fa182f15bf4d12dcf4622e..e11dbc19a8adc075a4b3d7e231c2d7136ab52187 100644 (file)
 
 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
@@ -35,45 +27,66 @@ Things-to-keep:
 
 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:
 
index ea734e5bc8c68088b9dc0efe4b7598c85f7cf8bd..93e8873d8083c07bc14778d34e02c518f0c12f1f 100644 (file)
@@ -1245,8 +1245,6 @@ proc do_h8300h_extend {} {
     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
@@ -2086,7 +2084,6 @@ proc do_h8300s_multiple {} {
     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
@@ -2153,7 +2150,6 @@ if [istarget h8300*-*-*] then {
     do_h8300h_rotate_shift
     do_h8300h_extend
 
-    # start-sanitize-h8s
     # Now test the h8300s instruction parser
     do_h8300s_add_sub
     do_h8300s_logical
@@ -2177,7 +2173,6 @@ if [istarget h8300*-*-*] then {
     do_h8300s_mac
     do_h8300s_multiple
 
-    # end-sanitize-h8s
     do_h8300h_mov32bug
 
     # Now some random tests
This page took 0.047678 seconds and 4 git commands to generate.