aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rl78
diff options
context:
space:
mode:
authorSebastian Perta <sebastian.perta@renesas.com>2018-01-22 19:23:15 +0000
committerSebastian Perta <sebastianperta@gcc.gnu.org>2018-01-22 19:23:15 +0000
commitbc8b0d04284de4288cae4e4ab3bc2d6c36d36245 (patch)
tree6f40695d6f1dddf72c76e99075eb3e6db444d323 /gcc/config/rl78
parent99cc06ea069ea91ffb2fab663a2a67375d4b0304 (diff)
downloadgcc-bc8b0d04284de4288cae4e4ab3bc2d6c36d36245.zip
gcc-bc8b0d04284de4288cae4e4ab3bc2d6c36d36245.tar.gz
gcc-bc8b0d04284de4288cae4e4ab3bc2d6c36d36245.tar.bz2
rl78.md: New define_expand "anddi3".
2018-01-22 Sebastian Perta <sebastian.perta@renesas.com> * config/rl78/rl78.md: New define_expand "anddi3". 2018-01-22 Sebastian Perta <sebastian.perta@renesas.com> * config/rl78/anddi3.S: New assembly file. * config/rl78/t-rl78: Added anddi3.S to LIB2ADD. From-SVN: r256958
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 a447f33..1c44e87 100644
--- a/gcc/config/rl78/rl78.md
+++ b/gcc/config/rl78/rl78.md
@@ -758,3 +758,13 @@
"rl78_emit_libcall (\"__smaxdi3\", SMAX, DImode, DImode, 3, operands);
DONE;"
)
+
+(define_expand "anddi3"
+ [(set (match_operand:DI 0 "nonimmediate_operand" "")
+ (and:DI (match_operand:DI 1 "general_operand" "")
+ (match_operand:DI 2 "general_operand" "")))
+ ]
+ "optimize_size"
+ "rl78_emit_libcall (\"__anddi3\", AND, DImode, DImode, 3, operands);
+ DONE;"
+)