aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rl78
diff options
context:
space:
mode:
authorSebastian Perta <sebastian.perta@renesas.com>2018-01-22 15:00:59 +0000
committerSebastian Perta <sebastianperta@gcc.gnu.org>2018-01-22 15:00:59 +0000
commit5dd16013d4207df512b3084bc7fb5a4fd943d755 (patch)
treed4044f4a15983d2b70d557452f4a36ea3b69ac07 /gcc/config/rl78
parent0d918596ace1f32716143a12fd2738bb0e9b2e20 (diff)
downloadgcc-5dd16013d4207df512b3084bc7fb5a4fd943d755.zip
gcc-5dd16013d4207df512b3084bc7fb5a4fd943d755.tar.gz
gcc-5dd16013d4207df512b3084bc7fb5a4fd943d755.tar.bz2
rl78.md: New define_expand "umaxdi3".
2017-01-22 Sebastian Perta <sebastian.perta@renesas.com> * config/rl78/rl78.md: New define_expand "umaxdi3". 2017-01-22 Sebastian Perta <sebastian.perta@renesas.com> * config/rl78/umaxdi3.S: New assembly file. * config/rl78/t-rl78: Added umaxdi3.S to LIB2ADD. From-SVN: r256948
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 1f9fc00..92c63cf 100644
--- a/gcc/config/rl78/rl78.md
+++ b/gcc/config/rl78/rl78.md
@@ -718,3 +718,13 @@
[(set_attr "valloc" "macax")
(set_attr "is_g13_muldiv_insn" "yes")]
)
+
+(define_expand "umaxdi3"
+ [(set (match_operand:DI 0 "nonimmediate_operand" "")
+ (umax:DI (match_operand:DI 1 "general_operand" "")
+ (match_operand:DI 2 "general_operand" "")))
+ ]
+ "optimize_size"
+ "rl78_emit_libcall (\"__umaxdi3\", UMAX, DImode, DImode, 3, operands);
+ DONE;"
+)