diff options
author | Jeff Law <law@redhat.com> | 2018-12-02 11:31:44 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-12-02 11:31:44 -0700 |
commit | 92531115113b79b69992df4dae764620474249e5 (patch) | |
tree | f7168034e03788d0b92df5a256b44c9ccb1d58bb /gcc | |
parent | 3b131f6a86798c11093eee79b6069139efb92af9 (diff) | |
download | gcc-92531115113b79b69992df4dae764620474249e5.zip gcc-92531115113b79b69992df4dae764620474249e5.tar.gz gcc-92531115113b79b69992df4dae764620474249e5.tar.bz2 |
h8300.md (call, call_value): Drop mode from operand containing number of bytes pushed.
* config/h8300/h8300.md (call, call_value): Drop mode from
operand containing number of bytes pushed.
(call_insn, call_value_insn): Use mode iterator for number
of bytes pushed operand. Make pattern name vary appropriately.
From-SVN: r266727
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c143ee1..204a9fa2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-12-02 Jeff Law <law@redhat.com> + + * config/h8300/h8300.md (call, call_value): Drop mode from + operand containing number of bytes pushed. + (call_insn, call_value_insn): Use mode iterator for number + of bytes pushed operand. Make pattern name vary appropriately. + 2018-12-02 Jan Hubicka <jh@suse.cz> * bb-reorer.c (find_rarely_executed_basic_blocks_and_crossin_edges): diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 0686f25..b3ba7e0 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2066,7 +2066,7 @@ (define_expand "call" [(call (match_operand:QI 0 "call_expander_operand" "") - (match_operand:HI 1 "general_operand" ""))] + (match_operand 1 "general_operand" ""))] "" { if (!register_operand (XEXP (operands[0], 0), Pmode) @@ -2074,9 +2074,9 @@ XEXP (operands[0], 0) = force_reg (Pmode, XEXP (operands[0], 0)); }) -(define_insn "call_insn" +(define_insn "call_insn_<mode>" [(call (mem:QI (match_operand 0 "call_insn_operand" "Cr")) - (match_operand:HI 1 "general_operand" "g"))] + (match_operand:P 1 "general_operand" "g"))] "" { rtx xoperands[1]; @@ -2103,7 +2103,7 @@ (define_expand "call_value" [(set (match_operand 0 "" "") (call (match_operand:QI 1 "call_expander_operand" "") - (match_operand:HI 2 "general_operand" "")))] + (match_operand 2 "general_operand" "")))] "" { if (!register_operand (XEXP (operands[1], 0), Pmode) @@ -2111,10 +2111,10 @@ XEXP (operands[1], 0) = force_reg (Pmode, XEXP (operands[1], 0)); }) -(define_insn "call_value_insn" +(define_insn "call_value_insn_<mode>" [(set (match_operand 0 "" "=r") (call (mem:QI (match_operand 1 "call_insn_operand" "Cr")) - (match_operand:HI 2 "general_operand" "g")))] + (match_operand:P 2 "general_operand" "g")))] "" { rtx xoperands[2]; |