SPE doesn't have a fsel instruction, so don't try to lower to it.
This fixes a "Cannot select: tN: f64 = PPCISD::FSEL tX, tY, tZ" error.
Paths
| Differential D77773
PowerPC: Don't lower SELECT_CC to PPCISD::FSEL on SPE ClosedPublic Authored by jhibbits on Apr 8 2020, 8:39 PM.
Details
Summary SPE doesn't have a fsel instruction, so don't try to lower to it. This fixes a "Cannot select: tN: f64 = PPCISD::FSEL tX, tY, tZ" error.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 27 2020, 11:09 PM This revision was landed with ongoing or failed builds.Jul 31 2020, 9:04 PM Closed by commit rG7e9153e940e2: PowerPC: Don't lower SELECT_CC to PPCISD::FSEL on SPE (authored by jhibbits). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 256172 llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/spe-fastmath.ll
|
nit: Move this line to the above(clang-format might comment in a wrong line :o).