* config/h8300/h8300.c (output_a_shift): Remove unused code.
From-SVN: r60423
This commit is contained in:
parent
d317855ebc
commit
ade53a5036
2 changed files with 13 additions and 23 deletions
|
@ -1,3 +1,7 @@
|
|||
2002-12-23 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* config/h8300/h8300.c (output_a_shift): Remove unused code.
|
||||
|
||||
2002-12-22 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* stor-layout.c (update_alignment_for_field): Guard use of
|
||||
|
|
|
@ -3104,29 +3104,15 @@ output_a_shift (operands)
|
|||
output_asm_insn (info.shift1, operands);
|
||||
|
||||
/* Now mask off the high bits. */
|
||||
switch (mode)
|
||||
{
|
||||
case QImode:
|
||||
sprintf (insn_buf, "and\t#%d,%%X0", mask);
|
||||
cc_status.value1 = operands[0];
|
||||
cc_status.flags |= CC_NO_CARRY;
|
||||
break;
|
||||
case HImode:
|
||||
if (TARGET_H8300)
|
||||
{
|
||||
sprintf (insn_buf, "and\t#%d,%%s0\n\tand\t#%d,%%t0",
|
||||
mask & 255, mask >> 8);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf (insn_buf, "and.w\t#%d,%%T0", mask);
|
||||
cc_status.value1 = operands[0];
|
||||
cc_status.flags |= CC_NO_CARRY;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
abort ();
|
||||
}
|
||||
if (mode == QImode)
|
||||
sprintf (insn_buf, "and\t#%d,%%X0", mask);
|
||||
else if (mode == HImode && (TARGET_H8300H || TARGET_H8300S))
|
||||
sprintf (insn_buf, "and.w\t#%d,%%T0", mask);
|
||||
else
|
||||
abort ();
|
||||
|
||||
cc_status.value1 = operands[0];
|
||||
cc_status.flags |= CC_NO_CARRY;
|
||||
output_asm_insn (insn_buf, operands);
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue