Commit b4350271 by Kito Cheng Committed by Chung-Ju Wu

[NDS32] Restrict mov pattern that has at least one register operand.

gcc/
	* config/nds32/nds32-doubleword.md (move_<mode>): Require
	resiter_operand condition.
	* config/nds32/nds32.md (*move<mode>): Ditto.

From-SVN: r259077
parent f46de383
2018-04-04 Kito Cheng <kito.cheng@gmail.com> 2018-04-04 Kito Cheng <kito.cheng@gmail.com>
* config/nds32/nds32-doubleword.md (move_<mode>): Require
resiter_operand condition.
* config/nds32/nds32.md (*move<mode>): Ditto.
2018-04-04 Kito Cheng <kito.cheng@gmail.com>
Monk Chiang <sh.chiang04@gmail.com> Monk Chiang <sh.chiang04@gmail.com>
* config/nds32/nds32.md (movmisalign<mode>): New pattern. * config/nds32/nds32.md (movmisalign<mode>): New pattern.
......
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
(define_insn "move_<mode>" (define_insn "move_<mode>"
[(set (match_operand:DIDF 0 "nonimmediate_operand" "=r, r, r, m") [(set (match_operand:DIDF 0 "nonimmediate_operand" "=r, r, r, m")
(match_operand:DIDF 1 "general_operand" " r, i, m, r"))] (match_operand:DIDF 1 "general_operand" " r, i, m, r"))]
"" "register_operand(operands[0], <MODE>mode)
|| register_operand(operands[1], <MODE>mode)"
{ {
rtx addr; rtx addr;
rtx otherops[5]; rtx otherops[5];
......
...@@ -158,7 +158,8 @@ ...@@ -158,7 +158,8 @@
(define_insn "*mov<mode>" (define_insn "*mov<mode>"
[(set (match_operand:QIHISI 0 "nonimmediate_operand" "=r, r, U45, U33, U37, U45, m, l, l, l, d, r, d, r, r, r") [(set (match_operand:QIHISI 0 "nonimmediate_operand" "=r, r, U45, U33, U37, U45, m, l, l, l, d, r, d, r, r, r")
(match_operand:QIHISI 1 "nds32_move_operand" " r, r, l, l, l, d, r, U45, U33, U37, U45, m, Ip05, Is05, Is20, Ihig"))] (match_operand:QIHISI 1 "nds32_move_operand" " r, r, l, l, l, d, r, U45, U33, U37, U45, m, Ip05, Is05, Is20, Ihig"))]
"" "register_operand(operands[0], <MODE>mode)
|| register_operand(operands[1], <MODE>mode)"
{ {
switch (which_alternative) switch (which_alternative)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment