[all-commits] [llvm/llvm-project] 709e4a: [LoongArch] Add codegen support for the bitwise bi...

Lu Weining via All-commits all-commits at lists.llvm.org
Sun Jun 19 18:57:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 709e4ad0d9f09cc9b56c5b0c460f9419e0455a6b
      https://github.com/llvm/llvm-project/commit/709e4ad0d9f09cc9b56c5b0c460f9419e0455a6b
  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/LoongArchISelDAGToDAG.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/lib/Target/LoongArch/LoongArchRegisterInfo.td
    A llvm/test/CodeGen/LoongArch/ir-instruction/and.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/ashr.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/fcmp-dbl.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/fcmp-flt.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/icmp.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/lshr.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/or.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-dbl.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-flt.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-bare-int.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-fpcc-dbl.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-fpcc-flt.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-fpcc-int.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-dbl.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-flt.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/select-icc-int.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/shl.ll
    A llvm/test/CodeGen/LoongArch/ir-instruction/xor.ll
    A llvm/test/CodeGen/LoongArch/shift-masked-shamt.ll

  Log Message:
  -----------
  [LoongArch] Add codegen support for the bitwise binary operations and part of other operations

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

The reason why other operations are implemented here is that some
bitwise binary operations depend on them. For example, on loongarch32,
`shl` over i64 data requires `select`.

Differential Revision: https://reviews.llvm.org/D127203




More information about the All-commits mailing list