avr-protos.h (avr_output_bld): Remove unused prototype.

* config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
	* config/avr/avr.c (avr_output_bld): Remove unused function.
	(avr_out_sbxx_branch): Use "%T" to print bit position.

From-SVN: r184660
This commit is contained in:
Georg-Johann Lay 2012-02-29 12:09:30 +00:00 committed by Georg-Johann Lay
parent 35e8bcf454
commit 208486094c
3 changed files with 10 additions and 27 deletions

View File

@ -1,3 +1,9 @@
2012-02-29 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
* config/avr/avr.c (avr_output_bld): Remove unused function.
(avr_out_sbxx_branch): Use "%T" to print bit position.
2012-02-29 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.md: Untabify.

View File

@ -83,7 +83,6 @@ extern bool avr_emit_movmemhi (rtx*);
extern int avr_epilogue_uses (int regno);
extern int avr_starting_frame_offset (void);
extern void avr_output_bld (rtx operands[], int bit_nr);
extern void avr_output_addr_vec_elt (FILE *stream, int value);
extern const char *avr_out_sbxx_branch (rtx insn, rtx operands[]);
extern const char* avr_out_bitop (rtx, rtx*, int*);

View File

@ -9503,15 +9503,6 @@ avr_out_reload_inpsi (rtx *op, rtx clobber_reg, int *len)
return "";
}
void
avr_output_bld (rtx operands[], int bit_nr)
{
static char s[] = "bld %A0,0";
s[5] = 'A' + (bit_nr >> 3);
s[8] = '0' + (bit_nr & 7);
output_asm_insn (s, operands);
}
void
avr_output_addr_vec_elt (FILE *stream, int value)
@ -9626,23 +9617,10 @@ avr_out_sbxx_branch (rtx insn, rtx operands[])
case REG:
if (GET_MODE (operands[1]) == QImode)
{
if (comp == EQ)
output_asm_insn ("sbrs %1,%2", operands);
else
output_asm_insn ("sbrc %1,%2", operands);
}
else /* HImode, PSImode or SImode */
{
static char buf[] = "sbrc %A1,0";
unsigned int bit_nr = UINTVAL (operands[2]);
buf[3] = (comp == EQ) ? 's' : 'c';
buf[6] = 'A' + (bit_nr / 8);
buf[9] = '0' + (bit_nr % 8);
output_asm_insn (buf, operands);
}
if (comp == EQ)
output_asm_insn ("sbrs %T1%T2", operands);
else
output_asm_insn ("sbrc %T1%T2", operands);
break; /* REG */
} /* switch */