[PATCH] D117006: [PowerPC] Add custom lowering for SELECT_CC fp128 using xsmaxcqp
Ting Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 11 17:32:24 PST 2022
tingwang added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrPrefix.td:1915
let Predicates = [Power10Instrs] in {
- def XSMAXCQP : X_VT5_VA5_VB5<63, 676, "xsmaxcqp", []>;
- def XSMINCQP : X_VT5_VA5_VB5<63, 740, "xsmincqp", []>;
+ def XSMAXCQP : X_VT5_VA5_VB5<63, 676, "xsmaxcqp",
+ [(set f128:$vT, (PPCxsmaxcq f128:$vA, f128:$vB))]>;
----------------
tingwang wrote:
> qiucf wrote:
> > I'm not sure why `xscmpeqqp` are located here, but this should be better placed at `PPCInstrVSX.td`.
> Thanks! I will move XS(MAX|MIN)CQP to sit together with XSMAXCDP.
A closer look at PPCInstrPrefix.td and PPCInstrVSX.td, all instructions with Power10Instrs predicate are located inside PPCInstrPrefix.td, and does not have any in PPCInstrVSX.td. There maybe some other preference regarding the placement, guess just leave it as is...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117006/new/
https://reviews.llvm.org/D117006
More information about the llvm-commits
mailing list