[all-commits] [llvm/llvm-project] 803cc3: [PowerPC] Implement Set Boolean Condition Instruct...

Amy Kwan via All-commits all-commits at lists.llvm.org
Mon Oct 26 16:43:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 803cc3aff2ce7fe07a59289070477d0ea0c9cf09
      https://github.com/llvm/llvm-project/commit/803cc3aff2ce7fe07a59289070477d0ea0c9cf09
  Author: Amy Kwan <amy.kwan1 at ibm.com>
  Date:   2020-10-26 (Mon, 26 Oct 2020)

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

  Log Message:
  -----------
  [PowerPC] Implement Set Boolean Condition Instructions

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

The set boolean condition instructions (set[n]bc[r]) are used during
the following 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)

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




More information about the All-commits mailing list