[all-commits] [llvm/llvm-project] a99211: [LoongArch] Add codegen support for the binary ope...
Lu Weining via All-commits
all-commits at lists.llvm.org
Sun Jun 19 18:44:21 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a9921155450ab1bb2ff920bf2dee4fec8d7a8652
https://github.com/llvm/llvm-project/commit/a9921155450ab1bb2ff920bf2dee4fec8d7a8652
Author: Weining Lu <luweining at loongson.cn>
Date: 2022-06-20 (Mon, 20 Jun 2022)
Changed paths:
M llvm/lib/Target/LoongArch/LoongArchFloat32InstrInfo.td
M llvm/lib/Target/LoongArch/LoongArchFloat64InstrInfo.td
M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
M llvm/test/CodeGen/LoongArch/ir-instruction/add.ll
A llvm/test/CodeGen/LoongArch/ir-instruction/fadd.ll
A llvm/test/CodeGen/LoongArch/ir-instruction/fdiv.ll
A llvm/test/CodeGen/LoongArch/ir-instruction/fmul.ll
A llvm/test/CodeGen/LoongArch/ir-instruction/fsub.ll
A llvm/test/CodeGen/LoongArch/ir-instruction/sub.ll
Log Message:
-----------
[LoongArch] Add codegen support for the binary operations
These binary operations include 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.
Note `add` has been added in a previous patch.
Reference:
https://llvm.org/docs/LangRef.html#binary-operations
Differential Revision: https://reviews.llvm.org/D127199
More information about the All-commits
mailing list