Commit 9865d240 by Chung-Ju Wu Committed by Chung-Ju Wu

[NDS32] Refine condition of stack_push and stack_pop patterns.

gcc/
	* config/nds32/nds32.md (*stack_push, *stack_pop): Use
	NDS32_V3PUSH_AVAILABLE_P macro.

From-SVN: r259162
parent e2286268
2018-04-06 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.md (*stack_push, *stack_pop): Use
NDS32_V3PUSH_AVAILABLE_P macro.
2018-04-06 Monk Chiang <sh.chiang04@gmail.com>
Chung-Ju Wu <jasonwucj@gmail.com>
......
......@@ -1682,9 +1682,7 @@
(set_attr "combo" "12")
(set_attr "enabled" "yes")
(set (attr "length")
(if_then_else (match_test "TARGET_V3PUSH
&& !nds32_isr_function_p (cfun->decl)
&& (cfun->machine->va_args_size == 0)")
(if_then_else (match_test "NDS32_V3PUSH_AVAILABLE_P")
(const_int 2)
(const_int 4)))])
......@@ -1705,9 +1703,7 @@
(set_attr "combo" "12")
(set_attr "enabled" "yes")
(set (attr "length")
(if_then_else (match_test "TARGET_V3PUSH
&& !nds32_isr_function_p (cfun->decl)
&& (cfun->machine->va_args_size == 0)")
(if_then_else (match_test "NDS32_V3PUSH_AVAILABLE_P")
(const_int 2)
(const_int 4)))])
......
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