HomePhabricator

[PowerPC] Implement Set Boolean Condition Instructions

Authored by amyk on Oct 26 2020, 9:16 AM.

Description

[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