public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8284] LoongArch: Add fdiv define_expand template.
@ 2022-04-27 12:01 LuluCheng
  0 siblings, 0 replies; only message in thread
From: LuluCheng @ 2022-04-27 12:01 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1b21d79e4e462e38868486bbf3d1eaf4c14cc6d0

commit r12-8284-g1b21d79e4e462e38868486bbf3d1eaf4c14cc6d0
Author: Lulu Cheng <chenglulu@loongson.cn>
Date:   Wed Apr 27 15:07:05 2022 +0800

    LoongArch: Add fdiv define_expand template.
    
    gcc/ChangeLog:
    
            * config/loongarch/loongarch.md: Add fdiv define_expand template,
            then generate floating-point division and floating-point reciprocal
            instructions.

Diff:
---
 gcc/config/loongarch/loongarch.md | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gcc/config/loongarch/loongarch.md b/gcc/config/loongarch/loongarch.md
index 5a7641703b5..d3c809e25f3 100644
--- a/gcc/config/loongarch/loongarch.md
+++ b/gcc/config/loongarch/loongarch.md
@@ -713,6 +713,12 @@
 ;;
 
 ;; Float division and modulus.
+(define_expand "div<mode>3"
+  [(set (match_operand:ANYF 0 "register_operand")
+	(div:ANYF (match_operand:ANYF 1 "reg_or_1_operand")
+		  (match_operand:ANYF 2 "register_operand")))]
+  "")
+
 (define_insn "*div<mode>3"
   [(set (match_operand:ANYF 0 "register_operand" "=f")
 	(div:ANYF (match_operand:ANYF 1 "register_operand" "f")


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-27 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 12:01 [gcc r12-8284] LoongArch: Add fdiv define_expand template LuluCheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).