From d29cce74b2f2e5b49d09e8b8ad2b67db21c62ac8 Mon Sep 17 00:00:00 2001 From: Chung-Ju Wu Date: Mon, 11 Feb 2019 07:04:00 +0000 Subject: [PATCH] [NDS32] Add memory mode in call pattern. 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 | 5 +++++ gcc/config/nds32/nds32.md | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61896842aa1..06d5124bf45 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-11 Chung-Ju Wu + + * 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 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md index cba04c0ba8b..f9eba0a27d4 100644 --- a/gcc/config/nds32/nds32.md +++ b/gcc/config/nds32/nds32.md @@ -1523,7 +1523,7 @@ ) (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))])] @@ -1611,7 +1611,7 @@ (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))])] @@ -1714,7 +1714,7 @@ }) (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)])] @@ -1778,7 +1778,7 @@ (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)])] -- 2.30.2