summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-26 18:14:54 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-26 18:14:54 +0000
commita150fb6269f24e7120104a7c085f6052552e3f6d (patch)
treef7ad0326d87ce17abc4cab0fbe9c633bb76d2248
parente773c03974ebd53149378eed4287cc3977e8e2be (diff)
downloadgcc-a150fb6269f24e7120104a7c085f6052552e3f6d.tar.gz
2000-12-26 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c: Fix a comment typo. (get_shift_alg): Do not output extra whitespace after one line of assembly code. Output a tab after an opcode instead of a space. (emit_a_shift): Output a tab after an opcode instead of a space. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38491 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/h8300/h8300.c14
2 files changed, 13 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b2229a86622..b93316ce2e2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,7 +1,11 @@
2000-12-26 Kazu Hirata <kazu@hxi.com>
- * config/h8300/h8300.c (get_shift_alg): Fix a typo in the assembly
- code for 12-bit ASHIFTRT in HImode.
+ * config/h8300/h8300.c: Fix a comment typo.
+ (get_shift_alg): Fix a typo in the assembly code for 12-bit
+ ASHIFTRT in HImode. Do not output extra whitespace after one line
+ of assembly code. Output a tab after an opcode instead of a
+ space.
+ (emit_a_shift): Output a tab after an opcode instead of a space.
2000-12-23 Marek Michalkiewicz <marekm@linux.org.pl>
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index 8e206d5d2dc..d34903b294f 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -1713,7 +1713,7 @@ bit_operator (x, mode)
(with sign extension for ASHIFTRT)
16 - move word into place, zero or sign extend other
17-20 - do 16bit shift, then inline remaining shifts
- 20-23 - loop
+ 21-23 - loop
24* - ASHIFT: move byte 0(msb) to byte 1, zero byte 0,
move word 0 to word 1, zero word 0
LSHIFTRT: move word 1 to word 0, move byte 1 to byte 0,
@@ -2113,7 +2113,7 @@ get_shift_alg (cpu, shift_type, mode, count, assembler_p,
return SHIFT_SPECIAL;
case SHIFT_ASHIFTRT:
if (TARGET_H8300)
- *assembler_p = "mov.b\t%t0,%s0\n\tshll\t%t0\n\tsubx\t%t0,%t0\t";
+ *assembler_p = "mov.b\t%t0,%s0\n\tshll\t%t0\n\tsubx\t%t0,%t0";
else
*assembler_p = "mov.b\t%t0,%s0\n\texts.w\t%T0";
*cc_valid_p = 0;
@@ -2147,7 +2147,7 @@ get_shift_alg (cpu, shift_type, mode, count, assembler_p,
{
case SHIFT_ASHIFT:
if (TARGET_H8300S)
- *assembler_p = "mov.b\t%s0,%t0\n\tsub.b\t%s0,%s0\n\tshal.b\t#2,%t0\n\t";
+ *assembler_p = "mov.b\t%s0,%t0\n\tsub.b\t%s0,%s0\n\tshal.b\t#2,%t0";
else
*assembler_p = "mov.b\t%s0,%t0\n\tsub.b\t%s0,%s0\n\tshal.b\t%t0\n\tshal.b\t%t0";
*cc_valid_p = 0;
@@ -2442,7 +2442,7 @@ get_shift_alg (cpu, shift_type, mode, count, assembler_p,
if (shift_type == SHIFT_ASHIFTRT)
{
if (TARGET_H8300)
- *assembler_p = "shll\t%z0\n\tsubx %w0,%w0\n\tmov.b\t%w0,%x0\n\tmov.w\t%f0,%e0";
+ *assembler_p = "shll\t%z0\n\tsubx\t%w0,%w0\n\tmov.b\t%w0,%x0\n\tmov.w\t%f0,%e0";
else
*assembler_p = "shll\t%e0\n\tsubx\t%w0,%w0\n\tmov.b\t%w0,%x0\n\tmov.w\t%f0,%e0";
*cc_valid_p = 0;
@@ -2623,12 +2623,12 @@ emit_a_shift (insn, operands)
switch (mode)
{
case QImode:
- sprintf (insn_buf, "and #%d,%%X0", mask);
+ sprintf (insn_buf, "and\t#%d,%%X0", mask);
cc_status.value1 = operands[0];
cc_status.flags |= CC_NO_CARRY;
break;
case HImode:
- sprintf (insn_buf, "and #%d,%%s0\n\tand #%d,%%t0",
+ sprintf (insn_buf, "and\t#%d,%%s0\n\tand\t#%d,%%t0",
mask & 255, mask >> 8);
break;
case SImode:
@@ -2639,7 +2639,7 @@ emit_a_shift (insn, operands)
}
else
{
- sprintf (insn_buf, "and.%c #%d,%%%c0",
+ sprintf (insn_buf, "and.%c\t#%d,%%%c0",
"bwl"[shift_mode], mask,
mode == QImode ? 'X' : mode == HImode ? 'T' : 'S');
cc_status.value1 = operands[0];