[PATCH] D127199: [LoongArch 1/n] Add codegen support for the binary operations

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 04:32:11 PDT 2022


SixWeining created this revision.
SixWeining added reviewers: MaskRay, xry111, xen0n, wangleiat, rengolin, myhsu.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

These binary operations include add/sub/fadd/fsub/fmul/fdiv. Others ops
like mul/udiv/sdiv/urem/srem would be added later since they depend on
`shift` and `truncate` that have not been supported.

Reference:
https://llvm.org/docs/LangRef.html#binary-operations


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127199

Files:
  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/test/CodeGen/LoongArch/ir-instruction/add.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/fadd.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/fdiv.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/fmul.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/fsub.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/sub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127199.434772.patch
Type: text/x-patch
Size: 18655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220607/9532ea31/attachment.bin>


More information about the llvm-commits mailing list