is_fpclass (fj, mask)
->
sltu (r0, and (movfr2gr.[sd] (fclass.[sd] fj), (to_fclass_mask mask)))
[1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_fclass_sd
Paths
| Differential D159183
[LoongArch] Support llvm.is.fpclass for f32 and f64 ClosedPublic Authored by SixWeining on Aug 30 2023, 2:58 AM.
Details Summary is_fpclass (fj, mask) [1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#_fclass_sd
Diff Detail
Event TimelineComment Actions Sorry. The encoding (bits[6:9]) does not match llvm.is.fpclass's second argument. I must be dizzy. Now it is revised. This revision is now accepted and ready to land.Sep 12 2023, 1:05 AM This revision was landed with ongoing or failed builds.Sep 14 2023, 12:44 AM Closed by commit rG419f90e93aad: [LoongArch] Support llvm.is.fpclass for f32 and f64 (authored by SixWeining). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions
Thanks. Just fixed in 0a692b6b9632e1460f9e0e983196f2be5879acd1
Revision Contents
Diff 554649 llvm/lib/Target/LoongArch/LoongArchFloat32InstrInfo.td
llvm/lib/Target/LoongArch/LoongArchFloat64InstrInfo.td
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
llvm/test/CodeGen/LoongArch/is_fpclass_f32.ll
llvm/test/CodeGen/LoongArch/is_fpclass_f64.ll
|