aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-z8k.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-08-22 19:22:35 +0000
committerNick Clifton <nickc@redhat.com>2002-08-22 19:22:35 +0000
commit1489984027fe63be97159c6e80c0a62caac52e94 (patch)
tree4b5b2f8e42d6112f89d6409406fb5aa10d66f647 /gas/config/tc-z8k.c
parentd9a7f7ab85d9eb1760aec9575b213294b1bcd9dd (diff)
downloadgdb-1489984027fe63be97159c6e80c0a62caac52e94.zip
gdb-1489984027fe63be97159c6e80c0a62caac52e94.tar.gz
gdb-1489984027fe63be97159c6e80c0a62caac52e94.tar.bz2
opcodes: Fix definition of "in rd,imm16" opcode.
gas: Adjust ptr variable also in "case 0" case.
Diffstat (limited to 'gas/config/tc-z8k.c')
-rw-r--r--gas/config/tc-z8k.c41
1 files changed, 17 insertions, 24 deletions
diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c
index 04723f8..bde058a 100644
--- a/gas/config/tc-z8k.c
+++ b/gas/config/tc-z8k.c
@@ -731,6 +731,7 @@ get_operands (opcode, op_end, operand)
char *ptr = op_end;
char *savptr;
+ ptr++;
switch (opcode->noperands)
{
case 0:
@@ -739,40 +740,35 @@ get_operands (opcode, op_end, operand)
break;
case 1:
- ptr++;
if (opcode->arg_info[0] == CLASS_CC)
- {
- get_cc_operand (&ptr, operand + 0, 0);
- }
+ get_cc_operand (&ptr, operand + 0, 0);
+
else if (opcode->arg_info[0] == CLASS_FLAGS)
- {
- get_flags_operand (&ptr, operand + 0, 0);
- }
+ get_flags_operand (&ptr, operand + 0, 0);
+
else if (opcode->arg_info[0] == (CLASS_IMM + (ARG_IMM2)))
- {
- get_interrupt_operand (&ptr, operand + 0, 0);
- }
+ get_interrupt_operand (&ptr, operand + 0, 0);
+
else
- {
- get_operand (&ptr, operand + 0, 0);
- }
+ get_operand (&ptr, operand + 0, 0);
+
operand[1].mode = 0;
break;
case 2:
- ptr++;
savptr = ptr;
if (opcode->arg_info[0] == CLASS_CC)
- {
- get_cc_operand (&ptr, operand + 0, 0);
- }
+ get_cc_operand (&ptr, operand + 0, 0);
+
else if (opcode->arg_info[0] == CLASS_CTRL)
{
get_ctrl_operand (&ptr, operand + 0, 0);
+
if (the_ctrl == 0)
{
ptr = savptr;
get_operand (&ptr, operand + 0, 0);
+
if (ptr == 0)
return NULL;
if (*ptr == ',')
@@ -782,9 +778,8 @@ get_operands (opcode, op_end, operand)
}
}
else
- {
- get_operand (&ptr, operand + 0, 0);
- }
+ get_operand (&ptr, operand + 0, 0);
+
if (ptr == 0)
return NULL;
if (*ptr == ',')
@@ -793,7 +788,6 @@ get_operands (opcode, op_end, operand)
break;
case 3:
- ptr++;
get_operand (&ptr, operand + 0, 0);
if (*ptr == ',')
ptr++;
@@ -804,7 +798,6 @@ get_operands (opcode, op_end, operand)
break;
case 4:
- ptr++;
get_operand (&ptr, operand + 0, 0);
if (*ptr == ',')
ptr++;
@@ -1413,7 +1406,7 @@ md_section_align (seg, size)
void
md_apply_fix3 (fixP, valP, segment)
- fixS *fixP;
+ fixS * fixP;
valueT * valP;
segT segment ATTRIBUTE_UNUSED;
{
@@ -1483,7 +1476,7 @@ md_estimate_size_before_relax (fragP, segment_type)
register fragS *fragP ATTRIBUTE_UNUSED;
register segT segment_type ATTRIBUTE_UNUSED;
{
- printf (_("call tomd_estimate_size_before_relax \n"));
+ printf (_("call tomd_estimate_size_before_relax\n"));
abort ();
}