From 5feee954e8640c104085e6e4ecf0c452e1cb588c Mon Sep 17 00:00:00 2001 From: Sebastian Perta Date: Mon, 23 Oct 2017 17:54:02 +0000 Subject: rl78.md: New define_expand "subdi3". * config/rl78/rl78.md: New define_expand "subdi3". * config/rl78/subdi3.S: New assembly file. * config/rl78/t-rl78: Added subdi3.S to LIB2ADD. From-SVN: r254019 --- gcc/ChangeLog | 4 ++++ gcc/config/rl78/rl78.md | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab759ab..bed397c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-10-23 Sebastian Perta + + * config/rl78/rl78.md: New define_expand "subdi3". + 2017-10-23 H.J. Lu PR target/82673 diff --git a/gcc/config/rl78/rl78.md b/gcc/config/rl78/rl78.md index 105d9be..c53ca0f 100644 --- a/gcc/config/rl78/rl78.md +++ b/gcc/config/rl78/rl78.md @@ -268,6 +268,16 @@ DONE;" ) +(define_expand "subdi3" + [(set (match_operand:DI 0 "nonimmediate_operand" "") + (minus:DI (match_operand:DI 1 "general_operand" "") + (match_operand:DI 2 "general_operand" ""))) + ] + "" + "rl78_emit_libcall (\"__subdi3\", MINUS, DImode, DImode, 3, operands); + DONE;" +) + (define_insn "subsi3_internal_virt" [(set (match_operand:SI 0 "nonimmediate_operand" "=v,&vm, vm") (minus:SI (match_operand:SI 1 "general_operand" "0, vim, vim") -- cgit v1.1