[PATCH] D81727: [PowerPC] Support constrained fp operation for setcc
Ulrich Weigand via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 03:14:14 PDT 2020
uweigand requested changes to this revision.
uweigand added inline comments.
This revision now requires changes to proceed.
================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:409
+ setOperationAction(ISD::STRICT_FSETCC, MVT::f64, Legal);
+ setOperationAction(ISD::STRICT_FSETCC, MVT::f128, Legal);
+
----------------
Shouldn't all f128 support be guarded by EnableQuadPrecision?
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.td:3896
+// SETCCS for f32.
+defm : FSetCCPat<strict_fsetccs, f32, FCMPUS>;
----------------
This looks incorrect; you cannot use the same FCMPUS operation for both signaling and quiet compares. If I read the PowerISA correctly, the "fcmpo" instruction (not "fcmpu") is the correct one to use to implement signaling compares.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81727/new/
https://reviews.llvm.org/D81727
More information about the llvm-commits
mailing list