[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2023-01-03 Thread Xiaodong Liu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG63d46869ea57: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions (authored by XiaodongLoong). Repository: rG LLVM Github

[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2023-01-03 Thread WÁNG Xuěruì via Phabricator via cfe-commits
xen0n accepted this revision. xen0n added a comment. In D140685#4017381 , @xen0n wrote: >> MOVGR2FCSR modifies the value of the software writable field >> corresponding to the FCSR (floating-point control and status >> register) fcsr according to the

[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2023-01-02 Thread Xiaodong Liu via Phabricator via cfe-commits
XiaodongLoong updated this revision to Diff 485921. XiaodongLoong added a comment. rebase code. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D140685/new/ https://reviews.llvm.org/D140685 Files: clang/include/clang/Basic/BuiltinsLoongArch.def

[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2022-12-29 Thread Xiaodong Liu via Phabricator via cfe-commits
XiaodongLoong added a comment. @xen0n Thanks for your suggestion. Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.td:53 +SDTCisVT<1, GRLenVT>]>; +def SDT_LoongArchFCSR2GR : SDTypeProfile<1, 1, [SDTCisVT<0, GRLenVT>, +SDTCisVT<1, i32>]>; xen0n

[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2022-12-29 Thread Xiaodong Liu via Phabricator via cfe-commits
XiaodongLoong updated this revision to Diff 485593. XiaodongLoong marked an inline comment as done. XiaodongLoong added a comment. rebase code and change code for @xen0n's comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D140685/new/

[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2022-12-27 Thread WÁNG Xuěruì via Phabricator via cfe-commits
xen0n added a comment. > MOVGR2FCSR modifies the value of the software writable field > corresponding to the FCSR (floating-point control and status > register) fcsr according to the value of the lower 32 bits of > the GR (general purpose register) rj. The description of `movgr2fcsr` is

[PATCH] D140685: [LoongArch] Add intrinsics for MOVFCSR2GR and MOVGR2FCSR instructions

2022-12-27 Thread Xiaodong Liu via Phabricator via cfe-commits
XiaodongLoong created this revision. Herald added a subscriber: hiraditya. Herald added a project: All. XiaodongLoong requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. Instruction formats: `movgr2fcsr fcsr, rj` `movfcsr2gr