Commit 50ce6f88 by Naveen H.S Committed by Naveen H.S

aarch64-elf.h (REGISTER_PREFIX): Remove.

2013-03-21   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>

	* config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
	* config/aarch64/aarch64.c (aarch64_print_operand): Remove all
	occurrence of REGISTER_PREFIX as its empty string.

From-SVN: r196856
parent 4f1f78b9
2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
* config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
* config/aarch64/aarch64.c (aarch64_print_operand): Remove all
occurrence of REGISTER_PREFIX as its empty string.
2013-03-20 Jeff Law <law@redhat.com> 2013-03-20 Jeff Law <law@redhat.com>
* tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
......
...@@ -106,7 +106,6 @@ ...@@ -106,7 +106,6 @@
#define ASM_COMMENT_START "//" #define ASM_COMMENT_START "//"
#define REGISTER_PREFIX ""
#define LOCAL_LABEL_PREFIX "." #define LOCAL_LABEL_PREFIX "."
#define USER_LABEL_PREFIX "" #define USER_LABEL_PREFIX ""
......
...@@ -3348,7 +3348,7 @@ aarch64_print_operand (FILE *f, rtx x, char code) ...@@ -3348,7 +3348,7 @@ aarch64_print_operand (FILE *f, rtx x, char code)
output_operand_lossage ("incompatible floating point / vector register operand for '%%%c'", code); output_operand_lossage ("incompatible floating point / vector register operand for '%%%c'", code);
return; return;
} }
asm_fprintf (f, "%s%c%d", REGISTER_PREFIX, code, REGNO (x) - V0_REGNUM); asm_fprintf (f, "%c%d", code, REGNO (x) - V0_REGNUM);
break; break;
case 'S': case 'S':
...@@ -3361,8 +3361,7 @@ aarch64_print_operand (FILE *f, rtx x, char code) ...@@ -3361,8 +3361,7 @@ aarch64_print_operand (FILE *f, rtx x, char code)
output_operand_lossage ("incompatible floating point / vector register operand for '%%%c'", code); output_operand_lossage ("incompatible floating point / vector register operand for '%%%c'", code);
return; return;
} }
asm_fprintf (f, "%sv%d", REGISTER_PREFIX, asm_fprintf (f, "v%d", REGNO (x) - V0_REGNUM + (code - 'S'));
REGNO (x) - V0_REGNUM + (code - 'S'));
break; break;
case 'w': case 'w':
...@@ -3372,20 +3371,19 @@ aarch64_print_operand (FILE *f, rtx x, char code) ...@@ -3372,20 +3371,19 @@ aarch64_print_operand (FILE *f, rtx x, char code)
if (x == const0_rtx if (x == const0_rtx
|| (CONST_DOUBLE_P (x) && aarch64_float_const_zero_rtx_p (x))) || (CONST_DOUBLE_P (x) && aarch64_float_const_zero_rtx_p (x)))
{ {
asm_fprintf (f, "%s%czr", REGISTER_PREFIX, code); asm_fprintf (f, "%czr", code);
break; break;
} }
if (REG_P (x) && GP_REGNUM_P (REGNO (x))) if (REG_P (x) && GP_REGNUM_P (REGNO (x)))
{ {
asm_fprintf (f, "%s%c%d", REGISTER_PREFIX, code, asm_fprintf (f, "%c%d", code, REGNO (x) - R0_REGNUM);
REGNO (x) - R0_REGNUM);
break; break;
} }
if (REG_P (x) && REGNO (x) == SP_REGNUM) if (REG_P (x) && REGNO (x) == SP_REGNUM)
{ {
asm_fprintf (f, "%s%ssp", REGISTER_PREFIX, code == 'w' ? "w" : ""); asm_fprintf (f, "%ssp", code == 'w' ? "w" : "");
break; break;
} }
......
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