aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2001-11-11 19:22:39 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2001-11-11 19:22:39 +0000
commit0c50ee733d4ab7d8e363af4f5d530ac6a9e4081c (patch)
tree5cc33eee922e7c27c3f5bd45f9f00308f3022ef1 /gcc
parentfe19a83d8a2719459520baa77d240a945c365b5b (diff)
downloadgcc-0c50ee733d4ab7d8e363af4f5d530ac6a9e4081c.zip
gcc-0c50ee733d4ab7d8e363af4f5d530ac6a9e4081c.tar.gz
gcc-0c50ee733d4ab7d8e363af4f5d530ac6a9e4081c.tar.bz2
h8300.c (shift_alg): Remove SHIFT_MAX.
* config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX. (get_shift_alg): Remove redundant code. From-SVN: r46931
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.c14
2 files changed, 8 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9fd73c7..4d34182 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2001-11-11 Kazu Hirata <kazu@hxi.com>
+ * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
+ (get_shift_alg): Remove redundant code.
+
+2001-11-11 Kazu Hirata <kazu@hxi.com>
+
* config/pa/milli64.S: Fix comment formatting.
* config/pa/pa-64.h: Likewise.
* config/pa/pa-linux.h: Likewise.
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 0d5fffb..e8a5da3 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -1982,8 +1982,7 @@ enum shift_alg
SHIFT_INLINE,
SHIFT_ROT_AND,
SHIFT_SPECIAL,
- SHIFT_LOOP,
- SHIFT_MAX
+ SHIFT_LOOP
};
/* Symbols of the various shifts which can be used as indices. */
@@ -2212,7 +2211,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
info->cc_valid_p = shift_one[cpu_type][shift_type][shift_mode].cc_valid;
/* Now look for cases we want to optimize. */
-
switch (shift_mode)
{
case QIshift:
@@ -2238,8 +2236,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
goto return_shift_loop;
/* Other shifts by 5, 6, or 7 bits use SHIFT_ROT_AND. */
- info->shift1 = rotate_one[cpu_type][shift_type][shift_mode];
- info->shift2 = rotate_two[shift_type][shift_mode];
goto return_shift_rot_and;
}
@@ -2316,8 +2312,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
}
else if (shift_type != SHIFT_ASHIFTRT)
{
- info->shift1 = rotate_one[cpu_type][shift_type][shift_mode];
- info->shift2 = rotate_two[shift_type][shift_mode];
goto return_shift_rot_and;
}
}
@@ -2409,8 +2403,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
}
else
{
- info->shift1 = rotate_one[cpu_type][shift_type][shift_mode];
- info->shift2 = rotate_two[shift_type][shift_mode];
goto return_shift_rot_and;
}
}
@@ -2436,8 +2428,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
}
else
{
- info->shift1 = rotate_one[cpu_type][shift_type][shift_mode];
- info->shift2 = rotate_two[shift_type][shift_mode];
goto return_shift_rot_and;
}
}
@@ -2464,6 +2454,8 @@ get_shift_alg (shift_type, shift_mode, count, info)
goto end;
return_shift_rot_and:
+ info->shift1 = rotate_one[cpu_type][shift_type][shift_mode];
+ info->shift2 = rotate_two[shift_type][shift_mode];
info->cc_valid_p = 0;
info->alg = SHIFT_ROT_AND;
goto end;