mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-27 15:57:13 +00:00
AArch64: add comment missed out from earlier patch.
Helps explain some of the background behind this bit of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8fe2bf3a4
commit
b974e0babe
@ -2062,6 +2062,10 @@ SDNode *AArch64DAGToDAGISel::SelectLIBM(SDNode *N) {
|
|||||||
SmallVector<SDValue, 2> Ops;
|
SmallVector<SDValue, 2> Ops;
|
||||||
Ops.push_back(In);
|
Ops.push_back(In);
|
||||||
|
|
||||||
|
// C11 leaves it implementation-defined whether these operations trigger an
|
||||||
|
// inexact exception. IEEE says they don't. Unfortunately, Darwin decided
|
||||||
|
// they do so we sometimes have to insert a special instruction just to set
|
||||||
|
// the right bit in FPSR.
|
||||||
if (Subtarget->isTargetDarwin() && !TM.Options.UnsafeFPMath) {
|
if (Subtarget->isTargetDarwin() && !TM.Options.UnsafeFPMath) {
|
||||||
SDNode *FRINTX = CurDAG->getMachineNode(FRINTXOpc, dl, VT, MVT::Glue, In);
|
SDNode *FRINTX = CurDAG->getMachineNode(FRINTXOpc, dl, VT, MVT::Glue, In);
|
||||||
Ops.push_back(SDValue(FRINTX, 1));
|
Ops.push_back(SDValue(FRINTX, 1));
|
||||||
|
Loading…
Reference in New Issue
Block a user