[clang] [llvm] [LoongArch] [CodeGen] Add options for Clang to generate LoongArch-specific frecipe & frsqrte instructions (PR #109917)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 01:01:47 PDT 2024
================
@@ -141,6 +141,22 @@ enum NodeType : unsigned {
VALL_NONZERO,
VANY_NONZERO,
+ // Floating point approximate reciprocal operation
+ FRECIPE_S,
----------------
wangleiat wrote:
> They are not the same. The iocsrrd_* instructions have same operand type `GPR` but frecipe_* instructions have different types: FPR32/FPR64/v8f32/...
>
> Is it right? @wangleiat
yes, just like a generic ISD node, ADD/FADD ...
https://github.com/llvm/llvm-project/pull/109917
More information about the cfe-commits
mailing list