]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] Define WORD_REGISTER_OPERATIONS to zero and comment why
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 28 Apr 2016 12:24:47 +0000 (12:24 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 28 Apr 2016 12:24:47 +0000 (12:24 +0000)
* config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
and explain why in a comment.

From-SVN: r235563

gcc/ChangeLog
gcc/config/aarch64/aarch64.h

index 40258635363b12fee79ba0bbb139a3430014705f..0284c895ae64573d8a0537f50d0d2cffd81f1376 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
+       and explain why in a comment.
+
 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * config/arc/arc.md (cpu_facility): Add fpx variant.
index 15d7e4019adf207d5127ebba31af35a8b3437c5b..4135da1becd8a433a57b9a82fa2b63f6cc76640f 100644 (file)
@@ -722,7 +722,12 @@ do {                                                                            \
 #define USE_STORE_PRE_INCREMENT(MODE)   0
 #define USE_STORE_PRE_DECREMENT(MODE)   0
 
-/* ?? #define WORD_REGISTER_OPERATIONS  */
+/* WORD_REGISTER_OPERATIONS does not hold for AArch64.
+   The assigned word_mode is DImode but operations narrower than SImode
+   behave as 32-bit operations if using the W-form of the registers rather
+   than as word_mode (64-bit) operations as WORD_REGISTER_OPERATIONS
+   expects.  */
+#define WORD_REGISTER_OPERATIONS 0
 
 /* Define if loading from memory in MODE, an integral mode narrower than
    BITS_PER_WORD will either zero-extend or sign-extend.  The value of this