[all-commits] [llvm/llvm-project] 771aee: Reland "[LoongArch] Fix codegen of atomicrmw nand"

Lu Weining via All-commits all-commits at lists.llvm.org
Tue Oct 18 19:06:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 771aee91c85b15bb854f4811822d6bb74107bb2e
      https://github.com/llvm/llvm-project/commit/771aee91c85b15bb854f4811822d6bb74107bb2e
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
    M llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll

  Log Message:
  -----------
  Reland "[LoongArch] Fix codegen of atomicrmw nand"

Fix invalid RISCV-like MI being emitted for performing the `not`
operation: the LoongArch `xori` zero-extends the immediate, hence is
not equivalent to RISCV `xori`. The LoongArch `not` is a `nor` with
zero.

Patch by lrzlin (Lin Runze).

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




More information about the All-commits mailing list