aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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/config
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/config')
-rw-r--r--gcc/config/rl78/rl78.md10
1 files changed, 10 insertions, 0 deletions
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" "")