For Xinyu Qi - Fix define_constants for WCGR.
authorXinyu Qi <xyqi@marvell.com>
Tue, 26 Mar 2013 14:01:24 +0000 (14:01 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 26 Mar 2013 14:01:24 +0000 (14:01 +0000)
From-SVN: r197104

gcc/ChangeLog
gcc/config/arm/arm.h
gcc/config/arm/iwmmxt.md

index d5f829f..34721f7 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-26  Xinyu Qi  <xyqi@marvell.com>
+
+       * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
+        * config/arm/iwmmxt.md (WCGR0): Update.
+        (WCGR1, WCGR2, WCGR3): Likewise.
+
 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
index 39eb2a1..beee458 100644 (file)
@@ -955,6 +955,8 @@ extern int prefer_neon_for_64bits;
 
 #define FIRST_IWMMXT_REGNUM    (LAST_HI_VFP_REGNUM + 1)
 #define LAST_IWMMXT_REGNUM     (FIRST_IWMMXT_REGNUM + 15)
+
+/* Need to sync with WCGR in iwmmxt.md.  */
 #define FIRST_IWMMXT_GR_REGNUM (LAST_IWMMXT_REGNUM + 1)
 #define LAST_IWMMXT_GR_REGNUM  (FIRST_IWMMXT_GR_REGNUM + 3)
 
index 9e79454..ac4867b 100644 (file)
 ;; along with GCC; see the file COPYING3.  If not see
 ;; <http://www.gnu.org/licenses/>.
 
-;; Register numbers
+;; Register numbers. Need to sync with FIRST_IWMMXT_GR_REGNUM in arm.h
 (define_constants
-  [(WCGR0           43)
-   (WCGR1           44)
-   (WCGR2           45)
-   (WCGR3           46)
+  [(WCGR0           96)
+   (WCGR1           97)
+   (WCGR2           98)
+   (WCGR3           99)
   ]
 )