[PATCH] D87705: [PowerPC] Implement Set Boolean Condition Instructions

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 09:03:16 PDT 2020


amyk created this revision.
amyk added reviewers: power-llvm-team, PowerPC, nemanjai.
amyk added projects: LLVM, PowerPC.
Herald added subscribers: shchenz, hiraditya, qcolombet.
amyk requested review of this revision.

This patch implements the set boolean condition instructions introduced in POWER10.

The set boolean condition instructions (`set[n]bc[r]`) are used during these situations:

- sign/zero/any extending i1 to an i32 or i64,
- reg+reg, reg+imm or floating point comparisons being sign/zero extended to i32 or i64,
- spilling CR bits (using the `setnbc` instruction

Depends on D86252 <https://reviews.llvm.org/D86252>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87705

Files:
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/lib/Target/PowerPC/PPCInstrPrefix.td
  llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
  llvm/test/CodeGen/PowerPC/CompareEliminationSpillIssue.ll
  llvm/test/CodeGen/PowerPC/crbits.ll
  llvm/test/CodeGen/PowerPC/p10-setbc-ri.ll
  llvm/test/CodeGen/PowerPC/p10-setbc-rr.ll
  llvm/test/CodeGen/PowerPC/p10-setbcr-ri.ll
  llvm/test/CodeGen/PowerPC/p10-setbcr-rr.ll
  llvm/test/CodeGen/PowerPC/p10-setboolean-ext-fp.ll
  llvm/test/CodeGen/PowerPC/p10-setnbc-ri.ll
  llvm/test/CodeGen/PowerPC/p10-setnbc-rr.ll
  llvm/test/CodeGen/PowerPC/p10-setnbcr-ri.ll
  llvm/test/CodeGen/PowerPC/p10-setnbcr-rr.ll
  llvm/test/CodeGen/PowerPC/p10-spill-creq.ll
  llvm/test/CodeGen/PowerPC/p10-spill-crgt.ll
  llvm/test/CodeGen/PowerPC/p10-spill-crlt.ll
  llvm/test/CodeGen/PowerPC/p10-spill-crun.ll
  llvm/test/CodeGen/PowerPC/testComparesi32gtu.ll
  llvm/test/CodeGen/PowerPC/testComparesi32leu.ll
  llvm/test/CodeGen/PowerPC/testComparesi32ltu.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87705.291930.patch
Type: text/x-patch
Size: 257763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/ef749d1a/attachment-0001.bin>


More information about the llvm-commits mailing list