2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
authornaveenh <naveenh@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2013 07:08:59 +0000 (07:08 +0000)
committernaveenh <naveenh@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2013 07:08:59 +0000 (07:08 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196856 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/aarch64/aarch64-elf.h
gcc/config/aarch64/aarch64.c

index 5f93edd..a9843ca 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
index db08031..3f3ae52 100644 (file)
 
 #define ASM_COMMENT_START "//"
 
-#define REGISTER_PREFIX                ""
 #define LOCAL_LABEL_PREFIX     "."
 #define USER_LABEL_PREFIX      ""
 
index ce572f9..43af6a4 100644 (file)
@@ -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);
          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;
 
     case 'S':
@@ -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);
          return;
        }
-      asm_fprintf (f, "%sv%d", REGISTER_PREFIX,
-                              REGNO (x) - V0_REGNUM + (code - 'S'));
+      asm_fprintf (f, "v%d", REGNO (x) - V0_REGNUM + (code - 'S'));
       break;
 
     case 'w':
@@ -3372,20 +3371,19 @@ aarch64_print_operand (FILE *f, rtx x, char code)
       if (x == const0_rtx
          || (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;
        }
 
       if (REG_P (x) && GP_REGNUM_P (REGNO (x)))
        {
-         asm_fprintf (f, "%s%c%d", REGISTER_PREFIX, code,
-                      REGNO (x) - R0_REGNUM);
+         asm_fprintf (f, "%c%d", code, REGNO (x) - R0_REGNUM);
          break;
        }
 
       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;
        }