aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorChung-Ju Wu <jasonwucj@gmail.com>2018-04-06 06:33:44 +0000
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>2018-04-06 06:33:44 +0000
commit9865d2406b69338e624d18e4e52aaa4f79aeb199 (patch)
tree46a119757779ee6148e8853e31e07dd1d10f4d8d /gcc
parente22862689667e739d308140d72e8cc85ed116a2f (diff)
downloadgcc-9865d2406b69338e624d18e4e52aaa4f79aeb199.zip
gcc-9865d2406b69338e624d18e4e52aaa4f79aeb199.tar.gz
gcc-9865d2406b69338e624d18e4e52aaa4f79aeb199.tar.bz2
[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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/nds32/nds32.md8
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 979450f..0929270 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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>
diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md
index 25ae314..cb42d04 100644
--- a/gcc/config/nds32/nds32.md
+++ b/gcc/config/nds32/nds32.md
@@ -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)))])