[NDS32] Add memory mode in call pattern.
authorChung-Ju Wu <jasonwucj@gmail.com>
Mon, 11 Feb 2019 07:04:00 +0000 (07:04 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Mon, 11 Feb 2019 07:04:00 +0000 (07:04 +0000)
gcc/
* config/nds32/nds32.md (call_internal, call_value_internal,
sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.

From-SVN: r268761

gcc/ChangeLog
gcc/config/nds32/nds32.md

index 61896842aa10b3f4edcc52c200e020b712f3b85f..06d5124bf45f8a1070511890f87d2bdcc48b6226 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
+
+       * config/nds32/nds32.md (call_internal, call_value_internal,
+       sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
+
 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
index cba04c0ba8bfb5e0f2577957739d66175557f9eb..f9eba0a27d4750d5cf9d45749cad4be505a9d801 100644 (file)
 )
 
 (define_insn "call_internal"
-  [(parallel [(call (mem (match_operand:SI 0 "nds32_call_address_operand" "r, S"))
+  [(parallel [(call (mem:SI (match_operand:SI 0 "nds32_call_address_operand" "r, S"))
                    (match_operand 1))
              (clobber (reg:SI LP_REGNUM))
              (clobber (reg:SI TA_REGNUM))])]
 
 (define_insn "call_value_internal"
   [(parallel [(set (match_operand 0)
-                  (call (mem (match_operand:SI 1 "nds32_call_address_operand" "r, S"))
+                  (call (mem:SI (match_operand:SI 1 "nds32_call_address_operand" "r, S"))
                         (match_operand 2)))
              (clobber (reg:SI LP_REGNUM))
              (clobber (reg:SI TA_REGNUM))])]
 })
 
 (define_insn "sibcall_internal"
-  [(parallel [(call (mem (match_operand:SI 0 "nds32_call_address_operand" "r, S"))
+  [(parallel [(call (mem:SI (match_operand:SI 0 "nds32_call_address_operand" "r, S"))
                    (match_operand 1))
              (clobber (reg:SI TA_REGNUM))
              (return)])]
 
 (define_insn "sibcall_value_internal"
   [(parallel [(set (match_operand 0)
-                  (call (mem (match_operand:SI 1 "nds32_call_address_operand" "r, S"))
+                  (call (mem:SI (match_operand:SI 1 "nds32_call_address_operand" "r, S"))
                         (match_operand 2)))
              (clobber (reg:SI TA_REGNUM))
              (return)])]