aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rl78
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rl78')
-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" "")