Commit 0f39a9aa by Doug Evans

sparc.c (print_operand): Handle new codes H/L.

	* sparc.c (print_operand): Handle new codes H/L.
	* sparc.md (lo_sum_di_sp32,adddi3_sp32,subdi3_sp32,
	mulsidi3_sp32,const_mulsidi3,umulsidi3_sp32,const_umulsidi3,
	smacdi,umacdi,anddi3_sp32,iordi3_sp32,xordi3_sp32,negdi2_sp32):
	Add little endian support.

From-SVN: r12845
parent ba619c96
...@@ -3925,6 +3925,20 @@ print_operand (file, x, code) ...@@ -3925,6 +3925,20 @@ print_operand (file, x, code)
else else
output_operand_lossage ("Invalid %%Y operand"); output_operand_lossage ("Invalid %%Y operand");
return; return;
case 'L':
/* Print out the low order register name of a register pair. */
if (WORDS_BIG_ENDIAN)
fputs (reg_names[REGNO (x)+1], file);
else
fputs (reg_names[REGNO (x)], file);
return;
case 'H':
/* Print out the high order register name of a register pair. */
if (WORDS_BIG_ENDIAN)
fputs (reg_names[REGNO (x)], file);
else
fputs (reg_names[REGNO (x)+1], file);
return;
case 'R': case 'R':
/* Print out the second register name of a register pair or quad. /* Print out the second register name of a register pair or quad.
I.e., R (%o0) => %o1. */ I.e., R (%o0) => %o1. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment