[all-commits] [llvm/llvm-project] 957240: [LoongArch] Fix codegen of atomicrmw nand
Lu Weining via All-commits
all-commits at lists.llvm.org
Tue Oct 18 05:43:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9572406bbcb497f8c23c28daa762b55ee3219f41
https://github.com/llvm/llvm-project/commit/9572406bbcb497f8c23c28daa762b55ee3219f41
Author: Weining Lu <luweining at loongson.cn>
Date: 2022-10-18 (Tue, 18 Oct 2022)
Changed paths:
M llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
M llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll
Log Message:
-----------
[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.
Differential Revision: https://reviews.llvm.org/D136021
More information about the All-commits
mailing list