aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSebastian Perta <sebastian.perta@renesas.com>2018-01-22 18:17:09 +0000
committerSebastian Perta <sebastianperta@gcc.gnu.org>2018-01-22 18:17:09 +0000
commit6e9007a0936b3aa73aa1daa6517e02810b44da89 (patch)
tree5fa204bb7e2cba49eeb2ab8be8259adb0e604ccf /gcc
parentd975e494874f9cec2d59ac977cfc80260a773085 (diff)
downloadgcc-6e9007a0936b3aa73aa1daa6517e02810b44da89.zip
gcc-6e9007a0936b3aa73aa1daa6517e02810b44da89.tar.gz
gcc-6e9007a0936b3aa73aa1daa6517e02810b44da89.tar.bz2
rl78.md: New define_expand "smindi3".
2018-01-22 Sebastian Perta <sebastian.perta@renesas.com> * config/rl78/rl78.md: New define_expand "smindi3". 2018-01-22 Sebastian Perta <sebastian.perta@renesas.com> * config/rl78/smindi3.S: New assembly file. * config/rl78/t-rl78: Added smindi3.S to LIB2ADD. From-SVN: r256954
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rl78/rl78.md10
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 77cacb6..bf8689a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
+ * config/rl78/rl78.md: New define_expand "smindi3".
+
+2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
+
* config/rl78/rl78.md: New define_expand "smaxdi3".
2018-01-22 Carl Love <cel@us.ibm.com>
diff --git a/gcc/config/rl78/rl78.md b/gcc/config/rl78/rl78.md
index b456737..f3201ff 100644
--- a/gcc/config/rl78/rl78.md
+++ b/gcc/config/rl78/rl78.md
@@ -729,6 +729,16 @@
DONE;"
)
+(define_expand "smindi3"
+ [(set (match_operand:DI 0 "nonimmediate_operand" "")
+ (smin:DI (match_operand:DI 1 "general_operand" "")
+ (match_operand:DI 2 "general_operand" "")))
+ ]
+ "optimize_size"
+ "rl78_emit_libcall (\"__smindi3\", SMIN, DImode, DImode, 3, operands);
+ DONE;"
+)
+
(define_expand "smaxdi3"
[(set (match_operand:DI 0 "nonimmediate_operand" "")
(smax:DI (match_operand:DI 1 "general_operand" "")