[PATCH] D57359: [GlobalISel] Introduce a G_FSQRT generic instruction
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 28 14:48:46 PST 2019
arsenm added inline comments.
================
Comment at: include/llvm/Target/GenericOpcodes.td:572-577
+// Floating point square root of a value.
+def G_FSQRT : GenericInstruction {
+ let OutOperandList = (outs type0:$dst);
+ let InOperandList = (ins type0:$src1);
+ let hasSideEffects = 0;
+}
----------------
arsenm wrote:
> Needs a comment about the < 0 behavior. One particularly awful detail of SelectionDAG is ISD::FSQRT 's behavior differs from the llvm.sqrt intrinsic.
To be more specific, the IR claims this is undefined, which is the wrong answer. This should return a NAN
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57359/new/
https://reviews.llvm.org/D57359
More information about the llvm-commits
mailing list