These operations include sext, zext and trunc.
Reference:
https://llvm.org/docs/LangRef.html#conversion-operations
Depends on D127206
| Paths 
 |  Differential  D127204  
[LoongArch] Add codegen support for part of conversion operations ClosedPublic Authored by SixWeining on Jun 7 2022, 4:41 AM. 
Details Summary These operations include sext, zext and trunc. Reference: Depends on D127206 
Diff Detail 
 Event TimelineSixWeining added a child revision: D127205: [LoongArch] Use register R0 (ZERO) for constant 0.Jun 7 2022, 4:42 AM This revision is now accepted and ready to land.Jun 7 2022, 5:38 AM Comment Actions For now many of the operations are sub-optimal, but I guess that's only because niceties like bstrpick.[wd] are still not ready yet. I already saw ori $dest, $zero, 0 being taken care of in the next patch, so let's take care of them later; the testcases are certainly useful. Thanks! SixWeining retitled this revision from [LoongArch 4/n] Add codegen support for part of conversion operations to [LoongArch] Add codegen support for part of conversion operations.Jun 9 2022, 7:02 PM SixWeining removed a child revision: D127205: [LoongArch] Use register R0 (ZERO) for constant 0.Jun 13 2022, 6:07 AM SixWeining removed a parent revision: D127203: [LoongArch] Add codegen support for the bitwise binary operations and part of other operations. SixWeining added a parent revision: D127206: [LoongArch] Perform `and` combination with a shifted mask.Jun 13 2022, 6:09 AM This revision was landed with ongoing or failed builds.Jun 19 2022, 7:01 PM Closed by commit rGcf71f97bb11c: [LoongArch] Add codegen support for part of conversion operations (authored by SixWeining).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 438237 llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
 llvm/test/CodeGen/LoongArch/ir-instruction/sext-zext-trunc.ll
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||