[all-commits] [llvm/llvm-project] 0c56bc: [PowerPC] Fix eq/ne comparison of v2i64 pre-Power8

Nemanja Ivanovic via All-commits all-commits at lists.llvm.org
Wed Jan 26 06:59:23 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c56bc92e4b9cf949f431d1c9e11e9b509ef6dbd
      https://github.com/llvm/llvm-project/commit/0c56bc92e4b9cf949f431d1c9e11e9b509ef6dbd
  Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
  Date:   2022-01-26 (Wed, 26 Jan 2022)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/test/CodeGen/PowerPC/vec-icmpeq-v2i64-p7.ll
    M llvm/test/CodeGen/PowerPC/vector-popcnt-128-ult-ugt.ll
    M llvm/test/CodeGen/PowerPC/vsx.ll

  Log Message:
  -----------
  [PowerPC] Fix eq/ne comparison of v2i64 pre-Power8

In commit 1674d9b6b2da, I fixed the bug where we didn't consider
both words of the result of the comparison. However, the logic
needs to be different for eq and ne.
Namely for eq, we need both words of the doubleword to equal so it
is an AND. OTOH for ne, we need either word to be unequal so it
is an OR.




More information about the All-commits mailing list