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.
This commit is contained in:
parent
cec978606a
commit
1b21d79e4e
1 changed files with 6 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue